8#ifndef INCLUDED_BSLSTL_MAPCOMPARATOR
9#define INCLUDED_BSLSTL_MAPCOMPARATOR
149#include <bslscm_version.h>
167template <
class KEY,
class VALUE,
class COMPARATOR>
168#ifdef BSLS_PLATFORM_CMP_MSVC
223 template <
class LOOKUP_KEY>
232 template <
class LOOKUP_KEY>
234 const LOOKUP_KEY& rhs);
248 template <
class LOOKUP_KEY>
257 template <
class LOOKUP_KEY>
259 const LOOKUP_KEY& rhs)
const;
276template <
class KEY,
class VALUE,
class COMPARATOR>
289template <
class KEY,
class VALUE,
class COMPARATOR>
292:
bslalg::FunctorAdapter<COMPARATOR>::Type()
296template <
class KEY,
class VALUE,
class COMPARATOR>
300:
bslalg::FunctorAdapter<COMPARATOR>::Type(valueComparator)
305template <
class KEY,
class VALUE,
class COMPARATOR>
317template <
class KEY,
class VALUE,
class COMPARATOR>
318template <
class LOOKUP_KEY>
321 const LOOKUP_KEY& lhs,
324 return keyComparator()(lhs,
325 static_cast<const NodeType&
>(rhs).value().first);
328template <
class KEY,
class VALUE,
class COMPARATOR>
329template <
class LOOKUP_KEY>
332 const LOOKUP_KEY& lhs,
335 return keyComparator()(lhs,
336 static_cast<const NodeType&
>(rhs).value().first);
339template <
class KEY,
class VALUE,
class COMPARATOR>
340template <
class LOOKUP_KEY>
344 const LOOKUP_KEY& rhs)
346 return keyComparator()(
static_cast<const NodeType&
>(lhs).value().first,
350template <
class KEY,
class VALUE,
class COMPARATOR>
351template <
class LOOKUP_KEY>
355 const LOOKUP_KEY& rhs)
const
357 return keyComparator()(
static_cast<const NodeType&
>(lhs).value().first,
361template <
class KEY,
class VALUE,
class COMPARATOR>
369template <
class KEY,
class VALUE,
class COMPARATOR>
379template <
class KEY,
class VALUE,
class COMPARATOR>
Definition bslstl_pair.h:1210
Definition bslalg_functoradapter.h:228
CALLABLE_OBJECT Type
This typedef is an alias for the functor.
Definition bslalg_functoradapter.h:234
Definition bslalg_rbtreenode.h:376
static void swap(T *a, T *b)
Definition bslalg_swaputil.h:194
Definition bslstl_mapcomparator.h:175
MapComparator(const MapComparator &original)=default
COMPARATOR & keyComparator()
Definition bslstl_mapcomparator.h:364
TreeNode< ValueType > NodeType
This alias represents the type of node holding a ValueType object.
Definition bslstl_mapcomparator.h:197
MapComparator()
Definition bslstl_mapcomparator.h:291
bsl::pair< const KEY, VALUE > ValueType
Definition bslstl_mapcomparator.h:194
void swap(MapComparator &other)
Definition bslstl_mapcomparator.h:307
bool operator()(const LOOKUP_KEY &lhs, const bslalg::RbTreeNode &rhs)
Definition bslstl_mapcomparator.h:320
Definition bslstl_treenode.h:393
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_UTIL_ADDRESSOF(OBJ)
Definition bsls_util.h:289
Definition bdlc_flathashmap.h:1805
Definition bslstl_algorithm.h:82