casacore
Loading...
Searching...
No Matches
Class UVector and related functions.

Classes

class  aocommon::UVector< Tp, Alloc >
 A container similar to std::vector, but one that allows construction without initializing its elements. More...

Functions

template<class Tp, class Alloc>
bool aocommon::operator== (const UVector< Tp, Alloc > &lhs, const UVector< Tp, Alloc > &rhs) noexcept
 Compare two UVectors for equality.
template<class Tp, class Alloc>
bool aocommon::operator!= (const UVector< Tp, Alloc > &lhs, const UVector< Tp, Alloc > &rhs) noexcept
 Compare two UVectors for inequality.
template<class Tp, class Alloc>
bool aocommon::operator< (const UVector< Tp, Alloc > &lhs, const UVector< Tp, Alloc > &rhs) noexcept
 Compare two UVectors for smaller than.
template<class Tp, class Alloc>
bool aocommon::operator<= (const UVector< Tp, Alloc > &lhs, const UVector< Tp, Alloc > &rhs) noexcept
 Compare two UVectors for smaller than or equal.
template<class Tp, class Alloc>
bool aocommon::operator> (const UVector< Tp, Alloc > &lhs, const UVector< Tp, Alloc > &rhs) noexcept
 Compare two UVectors for larger than.
template<class Tp, class Alloc>
bool aocommon::operator>= (const UVector< Tp, Alloc > &lhs, const UVector< Tp, Alloc > &rhs) noexcept
 Compare two UVectors for larger than or equal.
template<class Tp, class Alloc>
void aocommon::swap (UVector< Tp, Alloc > &x, UVector< Tp, Alloc > &y)
 Swap the contents of the two UVectors.

Detailed Description

Function Documentation

◆ operator!=()

template<class Tp, class Alloc>
bool aocommon::operator!= ( const UVector< Tp, Alloc > & lhs,
const UVector< Tp, Alloc > & rhs )
inlinenoexcept

Compare two UVectors for inequality.

Definition at line 1076 of file uvector.h.

◆ operator<()

template<class Tp, class Alloc>
bool aocommon::operator< ( const UVector< Tp, Alloc > & lhs,
const UVector< Tp, Alloc > & rhs )
inlinenoexcept

Compare two UVectors for smaller than.

If two UVectors compare equal up to the length of one, the UVector with the smallest size is consider to be smaller.

Definition at line 1085 of file uvector.h.

◆ operator<=()

template<class Tp, class Alloc>
bool aocommon::operator<= ( const UVector< Tp, Alloc > & lhs,
const UVector< Tp, Alloc > & rhs )
inlinenoexcept

Compare two UVectors for smaller than or equal.

If two UVectors compare equal up to the length of one, the UVector with the smallest size is consider to be smaller.

Definition at line 1101 of file uvector.h.

◆ operator==()

template<class Tp, class Alloc>
bool aocommon::operator== ( const UVector< Tp, Alloc > & lhs,
const UVector< Tp, Alloc > & rhs )
inlinenoexcept

Compare two UVectors for equality.

Definition at line 1070 of file uvector.h.

◆ operator>()

template<class Tp, class Alloc>
bool aocommon::operator> ( const UVector< Tp, Alloc > & lhs,
const UVector< Tp, Alloc > & rhs )
inlinenoexcept

Compare two UVectors for larger than.

If two UVectors compare equal up to the length of one, the UVector with the smallest size is consider to be smaller.

Definition at line 1117 of file uvector.h.

◆ operator>=()

template<class Tp, class Alloc>
bool aocommon::operator>= ( const UVector< Tp, Alloc > & lhs,
const UVector< Tp, Alloc > & rhs )
inlinenoexcept

Compare two UVectors for larger than or equal.

If two UVectors compare equal up to the length of one, the UVector with the smallest size is consider to be smaller.

Definition at line 1126 of file uvector.h.

◆ swap()

template<class Tp, class Alloc>
void aocommon::swap ( UVector< Tp, Alloc > & x,
UVector< Tp, Alloc > & y )
inline

Swap the contents of the two UVectors.

Iterators to both vectors will remain valid and will point into to the swapped container afterwards. This function will never reallocate space.

The allocator will be swapped when the propagate_on_container_swap of the respective allocator_trait is true_type. Its behaviour is undefined when the allocators do not compare equal and propagate_on_container_swap is false.

Definition at line 1141 of file uvector.h.

References aocommon::UVector< Tp, Alloc >::swap().