3.0.0
Freundlich's C++ toolkit
Public Member Functions
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. More...
 
bool inserted () const
 Tells if the element was inserted. More...
 

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 &  )

Member Function Documentation

◆ element()

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

A reference to the element in the container.

◆ inserted()

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

Tells if the element was inserted.

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