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

Detailed Description

template<typename Reference>
class fcppt::container::get_or_insert_result< Reference >

The result type of fcppt::container::get_or_insert_with_result.

Public Member Functions

 get_or_insert_result (Reference, bool)
 
template<typename Other >
 get_or_insert_result (get_or_insert_result< Other > const &)
 
Reference element () const
 A reference to the element in the container.
 
bool inserted () const
 Tells if the element was inserted.
 

Constructor & Destructor Documentation

◆ get_or_insert_result() [1/2]

template<typename Reference >
fcppt::container::get_or_insert_result< Reference >::get_or_insert_result ( Reference ,
bool  )

◆ get_or_insert_result() [2/2]

template<typename Reference >
template<typename Other >
fcppt::container::get_or_insert_result< Reference >::get_or_insert_result ( get_or_insert_result< Other > const & )
explicit

Member Function Documentation

◆ element()

template<typename Reference >
Reference fcppt::container::get_or_insert_result< Reference >::element ( ) const
nodiscard

A reference to the element in the container.

◆ inserted()

template<typename Reference >
bool fcppt::container::get_or_insert_result< Reference >::inserted ( ) const
nodiscard

Tells if the element was inserted.

Returns
true if the element was inserted, false if it was found.