return it;
}
-# ifdef CDS_EMPLACE_SUPPORT
/// For key \p key inserts data of type \ref mapped_type constructed with <tt>std::forward<Args>(args)...</tt>
/**
\p key_type should be constructible from type \p K
Returns \p true if inserting successful, \p false otherwise.
-
- This function is available only for compiler that supports
- variadic template and move semantics
*/
template <typename K, typename... Args>
iterator emplace( K&& key, Args&&... args )
{
return base_class::emplace( std::forward<K>(key), std::move(mapped_type(std::forward<Args>(args)...)));
}
-# endif
/// Ensures that the key \p key exists in the map
/**
/// Gets minimum key from the map
/**
- If the map is empty the function returns \p NULL
+ If the map is empty the function returns \p nullptr
*/
value_type * get_min() const
{
/// Gets maximum key from the map
/**
- The function returns \p NULL if the map is empty
+ The function returns \p nullptr if the map is empty
*/
value_type * get_max() const
{