Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::key< T, Compare > Class Template Reference
Inheritance diagram for nana::key< T, Compare >:
nana::detail::key_interface

Public Types

typedef detail::key_interface key_interface
 
typedef T key_type
 

Public Member Functions

 key (const key_type &k)
 
 key (key_type &&k)
 
bool same_type (const key_interface *p) const noexceptoverride
 
bool compare (const key_interface *p) const noexceptoverride
 is this key less than right key? [call it less(rk), less_than(rk) or compare_less(rk)?: if (lk.less_than(rk )) ] More...
 
- Public Member Functions inherited from nana::detail::key_interface
virtual ~key_interface ()
 

Detailed Description

template<typename T, typename Compare>
class nana::key< T, Compare >

Examples:
calculator.cpp.

Member Typedef Documentation

template<typename T , typename Compare >
typedef detail::key_interface nana::key< T, Compare >::key_interface
template<typename T , typename Compare >
typedef T nana::key< T, Compare >::key_type

Constructor & Destructor Documentation

template<typename T , typename Compare >
nana::key< T, Compare >::key ( const key_type k)
inline
template<typename T , typename Compare >
nana::key< T, Compare >::key ( key_type &&  k)
inline

Member Function Documentation

template<typename T , typename Compare >
bool nana::key< T, Compare >::compare ( const key_interface ) const
inlineoverridevirtualnoexcept

is this key less than right key? [call it less(rk), less_than(rk) or compare_less(rk)?: if (lk.less_than(rk )) ]

Implements nana::detail::key_interface.

template<typename T , typename Compare >
bool nana::key< T, Compare >::same_type ( const key_interface p) const
inlineoverridevirtualnoexcept