이야기

  • 홈
  • 태그
  • 방명록

2025/03/06 1

c++ 공부(vector iterator 구현)

#include templateclass Iterator {public: Iterator() : ptr_(nullptr) {} Iterator(T* ptr) : ptr_(ptr) {} Iterator& operator++() { ptr_++; return *this; } Iterator operator++(int) { Iterator tmpItr = *this; ptr_++; return tmpItr; } Iterator& operator--() { ptr_--; return *this; } Iterator operator--(int) { Iterator tmpItr = *this; ptr_--; return tmpItr; } Iterator operator+(const int coun..

c++ 2025.03.06
이전
1
다음
더보기
프로필사진

이야기

  • 분류 전체보기 (84)
    • 백준 (35)
    • c++ (14)
    • c# (0)
    • 인공지능 (0)
    • project (0)
    • unity (0)
    • html & css (1)
    • 정보보안기사 (2)
    • Algorithm (7)
    • MMOServer (25)

Tag

크기,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/03   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바