1. array Iterator Support
iterator begin();
const_iterator begin() const;
Throws : will not throw
iterator end();
const_iterator end() const;
Throws : will not throw
2. array reverse iterator support
reverse_iterator rbegin();
const_reverse_iterator rbegin() const;
reverse_iterator rend();
const_reverse_iterator rend() const;
3. array capacity
size_type size();
bool empty();
size_type max_size();
4. array element access
reference operator[](size_type i);
const_reference operator[](size_type i) const;
reference at(size_type i);
const_reference at(size_type i) const;
reference front();
const_reference front() const;
reference back();
const_reference back() const;
const T* data() const;
T* c_array();
5. array modifiers
void swap(array<T, N>& other);
void assign(const T& value);
6. array specialized algorithms
template<typename T, std::size_t N> void swap(array<T, N>& x, array<T, N>& y);
7. array comparisons
template<typename T, std::size_t N>
bool operator==(const array<T, N>& x, const array<T, N>& y);
template<typename T, std::size_t N>
bool operator!=(const array<T, N>& x, const array<T, N>& y);
template<typename T, std::size_t N>
bool operator<(const array<T, N>& x, const array<T, N>& y);
template<typename T, std::size_t N>
bool operator>(const array<T, N>& x, const array<T, N>& y);
template<typename T, std::size_t N>
bool operator<=(const array<T, N>& x, const array<T, N>& y);
template<typename T, std::size_t N>
bool operator>=(const array<T, N>& x, const array<T, N>& y);
'프로그램언어 > boost' 카테고리의 다른 글
[ Boost ] Boost.thread #1 (2) | 2011.05.03 |
---|---|
[ Boost ] Boost.array 관련 예제 만들어보기 (0) | 2011.05.03 |
[ Boost ] Ref. array.hpp (4) | 2011.05.02 |
[ Boost ] Boost.Array 정리 (0) | 2011.05.02 |
[ Boost ] boost.foreach 간단한 예제-2 (0) | 2011.04.29 |