casacore
Classes | Functions
Class uvector and related functions.

Classes

class  ao::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 ao::operator== (const uvector< Tp, Alloc > &lhs, const uvector< Tp, Alloc > &rhs) noexcept
 Compare two uvectors for equality. More...
 
template<class Tp , class Alloc >
bool ao::operator!= (const uvector< Tp, Alloc > &lhs, const uvector< Tp, Alloc > &rhs) noexcept
 Compare two uvectors for inequality. More...
 
template<class Tp , class Alloc >
bool ao::operator< (const uvector< Tp, Alloc > &lhs, const uvector< Tp, Alloc > &rhs) noexcept
 Compare two uvectors for smaller than. More...
 
template<class Tp , class Alloc >
bool ao::operator<= (const uvector< Tp, Alloc > &lhs, const uvector< Tp, Alloc > &rhs) noexcept
 Compare two uvectors for smaller than or equal. More...
 
template<class Tp , class Alloc >
bool ao::operator> (const uvector< Tp, Alloc > &lhs, const uvector< Tp, Alloc > &rhs) noexcept
 Compare two uvectors for larger than. More...
 
template<class Tp , class Alloc >
bool ao::operator>= (const uvector< Tp, Alloc > &lhs, const uvector< Tp, Alloc > &rhs) noexcept
 Compare two uvectors for larger than or equal. More...
 
template<class Tp , class Alloc >
void ao::swap (uvector< Tp, Alloc > &x, uvector< Tp, Alloc > &y)
 Swap the contents of the two uvectors. More...
 

Detailed Description

Function Documentation

◆ operator!=()

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

Compare two uvectors for inequality.

Definition at line 1162 of file uvector.h.

◆ operator<()

template<class Tp , class Alloc >
bool ao::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 1172 of file uvector.h.

References casacore::min().

◆ operator<=()

template<class Tp , class Alloc >
bool ao::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 1190 of file uvector.h.

References casacore::min().

◆ operator==()

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

Compare two uvectors for equality.

Definition at line 1155 of file uvector.h.

◆ operator>()

template<class Tp , class Alloc >
bool ao::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 1208 of file uvector.h.

◆ operator>=()

template<class Tp , class Alloc >
bool ao::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 1218 of file uvector.h.

◆ swap()

template<class Tp , class Alloc >
void ao::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 1234 of file uvector.h.

References ao::uvector< Tp, Alloc >::swap().

Referenced by ao::uvector< Tp, Alloc >::swap().