|
Array
Boost.Array Library
|
Classes | |
| class | array |
| A container that encapsulates fixed size arrays. More... | |
Functions | |
Comparisons | |
| template<class T , std::size_t N> | |
| bool | operator== (const array< T, N > &x, const array< T, N > &y) |
| Lexicographically compares the values in the array (. More... | |
| template<class T , std::size_t N> | |
| bool | operator< (const array< T, N > &x, const array< T, N > &y) |
| Lexicographically compares the values in the array (operator<) More... | |
| template<class T , std::size_t N> | |
| bool | operator!= (const array< T, N > &x, const array< T, N > &y) |
| Lexicographically compares the values in the array (operator!=) More... | |
| template<class T , std::size_t N> | |
| bool | operator> (const array< T, N > &x, const array< T, N > &y) |
| Lexicographically compares the values in the array (operator>) More... | |
| template<class T , std::size_t N> | |
| bool | operator<= (const array< T, N > &x, const array< T, N > &y) |
| Lexicographically compares the values in the array (operator<=) More... | |
| template<class T , std::size_t N> | |
| bool | operator>= (const array< T, N > &x, const array< T, N > &y) |
| Lexicographically compares the values in the array (operator>=) More... | |
Non-member functions | |
| template<class T , std::size_t N> | |
| void | swap (array< T, N > &x, array< T, N > &y) |
| Global swap function. More... | |
| template<typename T , std::size_t N> | |
| T(& | get_c_array (boost::array< T, N > &arg))[N] |
| template<typename T , std::size_t N> | |
| const T(& | get_c_array (const boost::array< T, N > &arg))[N] |
| template<class It > | |
| std::size_t | hash_range (It, It) |
| Calculate combined hash value of the elements of an iterator range. More... | |
| template<class T , std::size_t N> | |
| std::size_t | hash_value (const array< T, N > &arr) |
| Calculate hash value for an array. More... | |
| template<size_t Idx, typename T , size_t N> | |
| T & | get (boost::array< T, N > &arr) noexcept |
| Extracts the Ith element from the array. More... | |
| template<size_t Idx, typename T , size_t N> | |
| const T & | get (const boost::array< T, N > &arr) noexcept |
| Extracts the Ith element from a constant array. More... | |
|
noexcept |
Extracts the Ith element from the array.
This function wxtracts the Idx -th element element from the array.
Unlike at and operator[], the condition that Idx is in the range [0,N) is enforced at compile-time.
Constant
Idx < size()
| Idx | Element index to extract |
| T | array value type |
| N | array size |
| arr | array whose contents to extract |
See Also at, operator[]
|
noexcept |
Extracts the Ith element from a constant array.
This function wxtracts the Idx -th element element from a constant array.
Unlike at and operator[], the condition that Idx is in the range [0,N) is enforced at compile-time.
Constant
Idx < size()
| Idx | Element index to extract |
| T | array value type |
| N | array size |
| arr | array whose contents to extract |
See Also at, operator[]
| T(& boost::get_c_array | ( | boost::array< T, N > & | arg | ) | )[N] |
| const T(& boost::get_c_array | ( | const boost::array< T, N > & | arg | ) | )[N] |
| std::size_t boost::hash_range | ( | It | , |
| It | |||
| ) |
Calculate combined hash value of the elements of an iterator range.
Forward declaration for Boost.ContainerHash
Linear
This function is used to calculate the hash for an array
| It | First element in the range |
| It | Second element in the range |
See Also hash_value
| std::size_t boost::hash_value | ( | const array< T, N > & | arr | ) |
Calculate hash value for an array.
This function calculates the hash value for an array
Linear
This function is used to calculate the hash for an array, which allows it to be inserted in unordered containers.
| arr | Array for which we calculate the hash |
See Also hash_range
| bool boost::operator!= | ( | const array< T, N > & | x, |
| const array< T, N > & | y | ||
| ) |
Lexicographically compares the values in the array (operator!=)
This function lexicographically compares the values in the array.
Linear
| T | array value type |
| N | array size |
| x | First array whose contents to compare |
| y | Second array whose contents to compare |
| bool boost::operator< | ( | const array< T, N > & | x, |
| const array< T, N > & | y | ||
| ) |
Lexicographically compares the values in the array (operator<)
This function lexicographically compares the values in the array.
Linear
| T | array value type |
| N | array size |
| x | First array whose contents to compare |
| y | Second array whose contents to compare |
| bool boost::operator<= | ( | const array< T, N > & | x, |
| const array< T, N > & | y | ||
| ) |
Lexicographically compares the values in the array (operator<=)
This function lexicographically compares the values in the array.
Linear
| T | array value type |
| N | array size |
| x | First array whose contents to compare |
| y | Second array whose contents to compare |
| bool boost::operator== | ( | const array< T, N > & | x, |
| const array< T, N > & | y | ||
| ) |
Lexicographically compares the values in the array (.
This function lexicographically compares the values in the array.
Linear
| T | array value type |
| N | array size |
| x | First array whose contents to compare |
| y | Second array whose contents to compare |
| bool boost::operator> | ( | const array< T, N > & | x, |
| const array< T, N > & | y | ||
| ) |
Lexicographically compares the values in the array (operator>)
This function lexicographically compares the values in the array.
Linear
| T | array value type |
| N | array size |
| x | First array whose contents to compare |
| y | Second array whose contents to compare |
| bool boost::operator>= | ( | const array< T, N > & | x, |
| const array< T, N > & | y | ||
| ) |
Lexicographically compares the values in the array (operator>=)
This function lexicographically compares the values in the array.
Linear
| T | array value type |
| N | array size |
| x | First array whose contents to compare |
| y | Second array whose contents to compare |
Global swap function.
This function swaps the contents of two arrays with the array swap member function.
Linear
| T | array value type |
| N | array size |
| x | First array whose contents to swap |
| y | Second array whose contents to swap |