4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::container::move_range< Range > Class Template Reference

Detailed Description

template<typename Range>
class fcppt::container::move_range< Range >

A range that moves its elements.

Template Parameters
ContainerA container type.

Public Types

using iterator = std::move_iterator<typename Container::iterator>
 
using const_iterator = typename Container::const_iterator
 

Public Member Functions

 move_range (Container &&)
 
 move_range (move_range &&) noexcept
 
move_rangeoperator= (move_range &&) noexcept
 
 ~move_range ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Member Typedef Documentation

◆ const_iterator

template<typename Range >
using fcppt::container::move_range< Range >::const_iterator = typename Container::const_iterator

◆ iterator

template<typename Range >
using fcppt::container::move_range< Range >::iterator = std::move_iterator<typename Container::iterator>

Constructor & Destructor Documentation

◆ move_range() [1/2]

template<typename Range >
fcppt::container::move_range< Range >::move_range ( Container && )
explicit

◆ move_range() [2/2]

template<typename Range >
fcppt::container::move_range< Range >::move_range ( move_range< Range > && )
noexcept

◆ ~move_range()

template<typename Range >
fcppt::container::move_range< Range >::~move_range ( )

Member Function Documentation

◆ begin() [1/2]

template<typename Range >
iterator fcppt::container::move_range< Range >::begin ( )
nodiscard

◆ begin() [2/2]

template<typename Range >
const_iterator fcppt::container::move_range< Range >::begin ( ) const
nodiscard

◆ end() [1/2]

template<typename Range >
iterator fcppt::container::move_range< Range >::end ( )
nodiscard

◆ end() [2/2]

template<typename Range >
const_iterator fcppt::container::move_range< Range >::end ( ) const
nodiscard

◆ operator=()

template<typename Range >
move_range & fcppt::container::move_range< Range >::operator= ( move_range< Range > && )
noexcept