kblib 0.2.3
General utilities library for modern C++
kblib::enumeration< T > Class Template Reference

#include <kblib/iterators.h>

Public Member Functions

 enumeration ()=default
 
 enumeration (const enumeration &other)
 
 enumeration (volatile enumeration &other)
 
 enumeration (enumeration &&)=delete
 
auto operator= (const enumeration &)=delete
 
auto operator= (enumeration &&)=delete
 
 ~enumeration ()=default
 
auto index () const noexcept -> std::size_t
 
auto copied () &noexcept -> std::remove_const_t< T > &
 
auto copied () const &noexcept -> const T &
 
auto reffed () &noexcept -> T &
 
auto reffed () const &noexcept -> const T &
 

Friends

template<typename >
class enumerator_iterator
 

Detailed Description

template<typename T>
class kblib::enumeration< T >

Definition at line 688 of file iterators.h.

Constructor & Destructor Documentation

◆ enumeration() [1/4]

template<typename T >
kblib::enumeration< T >::enumeration ( )
default

◆ enumeration() [2/4]

template<typename T >
kblib::enumeration< T >::enumeration ( const enumeration< T > &  other)
inline

Definition at line 692 of file iterators.h.

◆ enumeration() [3/4]

template<typename T >
kblib::enumeration< T >::enumeration ( volatile enumeration< T > &  other)
inline

Definition at line 700 of file iterators.h.

◆ enumeration() [4/4]

template<typename T >
kblib::enumeration< T >::enumeration ( enumeration< T > &&  )
delete

◆ ~enumeration()

template<typename T >
kblib::enumeration< T >::~enumeration ( )
default

Member Function Documentation

◆ copied() [1/2]

template<typename T >
auto kblib::enumeration< T >::copied ( ) & -> std::remove_const_t<T>&
inlinenoexcept

Definition at line 716 of file iterators.h.

◆ copied() [2/2]

template<typename T >
auto kblib::enumeration< T >::copied ( ) const & -> const T&
inlinenoexcept

Definition at line 721 of file iterators.h.

◆ index()

template<typename T >
auto kblib::enumeration< T >::index ( ) const -> std::size_t
inlinenoexcept

Definition at line 714 of file iterators.h.

◆ operator=() [1/2]

template<typename T >
auto kblib::enumeration< T >::operator= ( const enumeration< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
auto kblib::enumeration< T >::operator= ( enumeration< T > &&  )
delete

◆ reffed() [1/2]

template<typename T >
auto kblib::enumeration< T >::reffed ( ) & -> T&
inlinenoexcept

Definition at line 726 of file iterators.h.

◆ reffed() [2/2]

template<typename T >
auto kblib::enumeration< T >::reffed ( ) const & -> const T&
inlinenoexcept

Definition at line 730 of file iterators.h.

Friends And Related Function Documentation

◆ enumerator_iterator

template<typename T >
template<typename >
friend class enumerator_iterator
friend

Definition at line 749 of file iterators.h.


The documentation for this class was generated from the following file: