2015. 4. 22. 19:33
Programming/C/C++
출처 : cplusplus
참고 : 한빛미디어 - About STL C++ STL
Member functions
- (constructor)
- Construct vector (public member function )
- (destructor)
- Vector destructor (public member function )
- operator=
- Assign content (public member function )
Iterators:
- begin
- Return iterator to beginning (public member function )
- end
- Return iterator to end (public member function )
- rbegin
- Return reverse iterator to reverse beginning (public member function )
- rend
- Return reverse iterator to reverse end (public member function )
- cbegin
- Return const_iterator to beginning (public member function )
- cend
- Return const_iterator to end (public member function )
- crbegin
- Return const_reverse_iterator to reverse beginning (public member function )
- crend
- Return const_reverse_iterator to reverse end (public member function )
Capacity:
- size
- Return size (public member function )
- max_size
- Return maximum size (public member function )
- resize
- Change size (public member function )
- capacity
- Return size of allocated storage capacity (public member function )
- empty
- Test whether vector is empty (public member function )
- reserve
- Request a change in capacity (public member function )
- shrink_to_fit
- Shrink to fit (public member function )
Element access:
- operator[]
- Access element (public member function )
- at
- Access element (public member function )
- front
- Access first element (public member function )
- back
- Access last element (public member function )
- data
- Access data (public member function )
Modifiers:
- assign
- Assign vector content (public member function )
- push_back
- Add element at the end (public member function )
- pop_back
- Delete last element (public member function )
- insert
- Insert elements (public member function )
- erase
- Erase elements (public member function )
- swap
- Swap content (public member function )
- clear
- Clear content (public member function )
- emplace
- Construct and insert element (public member function )
- emplace_back
- Construct and insert element at the end (public member function )
Allocator:
- get_allocator
- Get allocator (public member function )
Non-member function overloads
- relational operators
- Relational operators for vector (function template )
- swap
- Exchange contents of vectors (function template )
Template specializations
- vector<bool>
- Vector of bool (class template specialization )
'Programming > C/C++' 카테고리의 다른 글
[C++] Timer (0) | 2015.05.08 |
---|---|
[C++] 파일 입출력(ofstream/ifstream) (0) | 2015.05.08 |
[C++]std::string 를 const char* or char* 로 변환하기 (0) | 2015.04.16 |
[C] 파일입출력 (0) | 2015.04.16 |
[C++] 상속관련 콘솔응용프로그램 (0) | 2015.04.16 |