Cyclone ISO C++ API Reference Guide
|
Go to the documentation of this file.
18 #ifndef ORG_OMG_DDS_CORE_ARRAY_HPP_
19 #define ORG_OMG_DDS_CORE_ARRAY_HPP_
34 template <
typename T>
typename T::iterator
begin(T& t)
39 template <
typename T>
typename T::iterator
end(T& t)
44 template <
typename T>
typename T::const_iterator
begin(
const T& t)
49 template <
typename T>
typename T::const_iterator
end(
const T& t)
69 template<
typename _Tp, std::
size_t _Nm>
212 std::__throw_out_of_range(__N(
"array::at"));
222 std::__throw_out_of_range(__N(
"array::at"));
242 return _Nm ? *(
end() - 1) : *
end();
248 return _Nm ? *(
end() - 1) : *
end();
265 template<
typename _Tp, std::
size_t _Nm>
269 return std::equal(__one.
begin(), __one.
end(), __two.
begin());
272 template<
typename _Tp, std::
size_t _Nm>
276 return !(__one == __two);
279 template<
typename _Tp, std::
size_t _Nm>
283 return std::lexicographical_compare(__a.
begin(), __a.
end(),
287 template<
typename _Tp, std::
size_t _Nm>
291 return __two < __one;
294 template<
typename _Tp, std::
size_t _Nm>
298 return !(__one > __two);
301 template<
typename _Tp, std::
size_t _Nm>
305 return !(__one < __two);
309 template<std::
size_t _Int,
typename _Tp>
314 template<
typename _Tp, std::
size_t _Nm>
317 static const std::size_t value = _Nm;
320 template<
typename _Tp, std::
size_t _Nm>
324 template<std::
size_t _Int,
typename _Tp, std::
size_t _Nm>
330 template<std::
size_t _Int,
typename _Tp, std::
size_t _Nm>
337 template<std::
size_t _Int,
typename _Tp, std::
size_t _Nm>
const_reference operator[](size_type __n) const
const_reverse_iterator rend() const
const_reverse_iterator rbegin() const
const_iterator cend() const
bool operator<=(const array< _Tp, _Nm > &__one, const array< _Tp, _Nm > &__two)
const_iterator end() const
std::reverse_iterator< const_iterator > const_reverse_iterator
bool operator!=(const array< _Tp, _Nm > &__one, const array< _Tp, _Nm > &__two)
const typedef value_type & const_reference
value_type _M_instance[_Nm ? _Nm :1]
reference at(size_type __n)
bool operator==(const array< _Tp, _Nm > &__one, const array< _Tp, _Nm > &__two)
const typedef _Tp * const_pointer
reverse_iterator rbegin()
reference operator[](size_type __n)
bool operator>=(const array< _Tp, _Nm > &__one, const array< _Tp, _Nm > &__two)
void swap(array &__other)
void fill(const value_type &__u)
bool operator<(const array< _Tp, _Nm > &__a, const array< _Tp, _Nm > &__b)
std::ptrdiff_t difference_type
const_iterator begin() const
std::reverse_iterator< iterator > reverse_iterator
const_iterator cbegin() const
const_reference front() const
const_reference at(size_type __n) const
const_reverse_iterator crend() const
const typedef value_type * const_iterator
_Tp & get(array< _Tp, _Nm > &__arr)
bool operator>(const array< _Tp, _Nm > &__one, const array< _Tp, _Nm > &__two)
const_reverse_iterator crbegin() const
A standard container for storing a fixed size sequence of elements.
const_reference back() const
size_type max_size() const