...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
a dense vector of values of type T
, of variable size but with maximum . A dense vector of values of type T
, of variable size but with maximum . The default constructor creates the vector with size . Elements are constructed by the storage type bounded_array
, which need not initialise their value.
Inherits vector< T, bounded_array< T, N > >.
Public Types | |
typedef vector_type::size_type | size_type |
Public Member Functions | |
BOOST_UBLAS_INLINE | bounded_vector (size_type size) |
BOOST_UBLAS_INLINE | bounded_vector (const bounded_vector &v) |
template<class A2 > | |
BOOST_UBLAS_INLINE | bounded_vector (const vector< T, A2 > &v) |
template<class AE > | |
BOOST_UBLAS_INLINE | bounded_vector (const vector_expression< AE > &ae) |
BOOST_UBLAS_INLINE bounded_vector & | operator= (const bounded_vector &v) |
template<class A2 > | |
BOOST_UBLAS_INLINE bounded_vector & | operator= (const vector< T, A2 > &v) |
template<class C > | |
BOOST_UBLAS_INLINE bounded_vector & | operator= (const vector_container< C > &v) |
Assign a full vector (RHS-vector) to the current vector (LHS-vector) Assign a full vector (RHS-vector) to the current vector (LHS-vector). This method does not create any temporary. | |
template<class AE > | |
BOOST_UBLAS_INLINE bounded_vector & | operator= (const vector_expression< AE > &ae) |
Assign the result of a vector_expression to the vector Assign the result of a vector_expression to the vector. This is lazy-compiled and will be optimized out by the compiler on any type of expression. | |
Static Public Attributes | |
static const size_type | max_size = N |
BOOST_UBLAS_INLINE bounded_vector& boost::numeric::ublas::bounded_vector< T, N >::operator= | ( | const vector_expression< AE > & | ae | ) |
AE | is the type of the vector_expression |
ae | is a const reference to the vector_expression |
Reimplemented from boost::numeric::ublas::vector< T, bounded_array< T, N > >.
BOOST_UBLAS_INLINE bounded_vector& boost::numeric::ublas::bounded_vector< T, N >::operator= | ( | const vector_container< C > & | v | ) |
v | is the source vector container |
Reimplemented from boost::numeric::ublas::vector< T, bounded_array< T, N > >.