cortexlib  v0.2.0
Functions
std Namespace Reference

Functions

template<typename T >
constexpr auto swap (cxl::matrix< T > &x, cxl::matrix< T > &y) noexcept(noexcept(x.swap(y))) -> void
 Uses std::swap to swap the contents of two matrices. More...
 
template<typename Iterator , typename Container >
constexpr auto iter_move (const cxl::normal_iterator< Iterator, Container > &i) noexcept(is_nothrow_copy_constructible_v< Iterator > &&noexcept(ranges::iter_move(declval< Iterator & >()))) -> iter_rvalue_reference_t< Iterator >
 rvalue cast More...
 
template<typename Iterator , std::indirectly_swappable< Iterator > Iter2, typename Container >
constexpr auto iter_swap (const cxl::normal_iterator< Iterator, Container > &x, const cxl::normal_iterator< Iter2, Container > &y) noexcept(std::is_nothrow_copy_constructible_v< Iterator > &&std::is_nothrow_copy_constructible_v< Iter2 > &&noexcept(ranges::iter_swap(std::declval< Iterator & >(), std::declval< Iter2 & >()))) -> void
 Swaps iterator objects. More...
 

Function Documentation

◆ iter_move()

template<typename Iterator , typename Container >
constexpr auto std::iter_move ( const cxl::normal_iterator< Iterator, Container > &  i) -> iter_rvalue_reference_t<Iterator>
constexprnoexcept

rvalue cast

Template Parameters
Iter

Casts the underlying iterator to its rvalue reference type.

Parameters
itype: const cxl::normal_iterator<Iterator, Container>&
Returns
std::iter_rvalue_reference_t<Iterator>

◆ iter_swap()

template<typename Iterator , std::indirectly_swappable< Iterator > Iter2, typename Container >
constexpr auto std::iter_swap ( const cxl::normal_iterator< Iterator, Container > &  x,
const cxl::normal_iterator< Iter2, Container > &  y 
) -> void
constexprnoexcept

Swaps iterator objects.

Swaps objects pointed to by the underlying iterator

Template Parameters
Iterator
Iter2concept: std::indirectly_swappable<Iterator>
Container
Parameters
xtype: const cxl::normal_iterator<Iterator, Container>&
ytype: const cxl::normal_iterator<Iter2, Container>&

◆ swap()

template<typename T >
constexpr auto std::swap ( cxl::matrix< T > &  x,
cxl::matrix< T > &  y 
) -> void
inlineconstexprnoexcept

Uses std::swap to swap the contents of two matrices.

Swaps the contents of two matrices if they are of the same type.

Exceptions
std::swapis noexcept if x.swap(y) is noexcept.
Template Parameters
T
Parameters
xtype: const cxl::matrix<T>&
ytype: const cxl::matrix<T>&