https://cplusplus.com/reference/stack/stack/?kw=stackstacks are implemented as container adaptors, which are classes that use an encapsulated obj
https://cplusplus.com/reference/set/set/Sets are containers that store unique elements following a specific order. 👉 set은 unique element를 가지고 특정
https://stackoverflow.com/questions/56387509/this-argument-to-member-function-select-has-type-const-selectparam-but-fu인자로 const &(레퍼런스) 받는 경우 함수
https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/stl_tree.h https://cplusplus.com/reference/iterator/ rbtree_iterator는 `b
https://www.geeksforgeeks.org/red-black-tree-set-1-introduction-2/binary search tree이진 탐색 트리이진탐색의 장점과 연결리스트의 장점을 결합self balancing BST의 일종.일정한 규칙에
https://cplusplus.com/reference/utility/pair/?kw=pairThis class couples together a pair of values, which may be of different types (T1 and T2). T
https://cplusplus.com/reference/map/map/?kw=map Description Maps are associative containers that store elements formed by a combination of a key va
https://cplusplus.com/reference/iterator/iterator_traits/?kw=iterator_traits이터레이터 속성을 정의하는 특성 클래스이다.모든 이터레이터는 최소한 아래 멤버 타입을 포함해야 함.
is_integral https://cplusplus.com/reference/typetraits/isintegral/?kw=is_integral https://stackoverflow.com/questions/43571962/how-is-stdis-integral-implemented 이런 식으로 구현. template type이 integral인지 ...
https://cplusplus.com/reference/iterator/RandomAccessIterator/ vector의 iterator는 randomaccessiterator 이다. 아래 custom iterator에서 iteratortag를 randomacce
https://cplusplus.com/reference/vector/vector/?kw=vector Description Vectors are sequence containers representing arrays that can change in size. 👉 vector는 사이즈를 바꿀 수 있는 배열을 나타내는 sequence 컨테이너 Jus...
https://cplusplus.com/reference/iterator/reverseiterator/?kw=reverseiterator Description This class reverses the direction in which a bidirectional or random-access iterator iterates through a rang...
ex00 STL https://blockdmask.tistory.com/67 container 객체를 저장하는 객체, 자료구조 라고도 한다. 클래스 템플릿으로 구현되어있다. 출처: https://blockdmask.tistory.com/67 [개발자 지망생:티스토리]
함수 템플릿 연습https://modoocode.com/219template <class T> 또는 template <typename T> 와 같이 사용 (typename으로 사용하기)템플릿은 반드시 인스턴스화 되어야지만 비로소 컴파일러가 실제 코드
리터럴 문자열 인자를 타입별로 변환하여 반환하는 클래스를 만든다non displayable characters 는 안 쓴다고 가정ex) ’c’, ’a’, ...ex) 0, -42, 42...ex) 0.0f, -4.2f, 4.2f...ex) 0.0, -4.2, 4.2..
예외가 생긴 경우 throw를 쓰고 전달하고 싶은 객체를 써준다.아무 객체나 던져도 상관 없지만 표준 라이브러리에 여러 예외가 미리 정의되어 있음. 이를 사용하면 좋음.throw 한 위치에서 즉시 함수가 종료되고 예외처리 부분으로 점프. (가장 가까운 catch문으로
ex00 다형성(polymorphism) https://modoocode.com/210 하나의 메소드를 호출했음에도 여러가지 작업을 하는 것을 다형성이라고 한다. 저번에 공부했던 virtual 키워드 연장선~ ex01 파생 클래스의 private 변수를 기반 클래스
Borderlands https://borderlands.fandom.com/wiki/Borderlandshttps://borderlands.fandom.com/wiki/Borderlands https://namu.wiki/w/%EB%B3%B4%EB%8D%94%EB%9
기본 생성자 (Default Constructor)소멸자 (Destructor)복사생성자 (Copy Constructor)할당연산자 오버로딩 (Copy Assignment Operator)https://www.francescmm.com/orthodox-cano
new, delete keywordnew가 malloc 역할. 다른 점은 new는 생성자를 호출한다는 것. malloc으로 인스턴스를 할당하면 생성자가 호출되지 않아서 쓰레기 값이 들어가버림. new 키워드 자체가 malloc과 생성자 호출을 랩핑한 형태라고 함new