proxygen
folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc > Struct Template Reference

#include <StringKeyedUnorderedMap.h>

Inheritance diagram for folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >:
folly::F14NodeMap< std::string, Mapped, Hash, Eq, Alloc > folly::f14::detail::F14BasicMap< std::string, Mapped, Hash, Eq, Alloc >

Public Types

using Super = F14NodeMap< std::string, Mapped, Hash, Eq, Alloc >
 
using require_transparent_hash = typename Hash::is_transparent
 
using require_transparent_eq = typename Eq::is_transparent
 

Public Member Functions

 StringKeyedUnorderedMap ()
 
std::pair< typename Super::iterator, bool > insert (std::pair< StringPiece, Mapped > const &p)
 
std::pair< typename Super::iterator, bool > insert (std::pair< StringPiece, Mapped > &&p)
 
- Public Member Functions inherited from folly::F14NodeMap< std::string, Mapped, Hash, Eq, Alloc >
 F14NodeMap ()=default
 
F14NodeMapoperator= (std::initializer_list< value_type > ilist)
 
- Public Member Functions inherited from folly::f14::detail::F14BasicMap< std::string, Mapped, Hash, Eq, Alloc >
 F14BasicMap ()=default
 
std::size_t getAllocatedMemorySize () const
 
void visitAllocationClasses (V &&visitor) const
 
void visitContiguousRanges (V &&visitor) const
 

Detailed Description

template<class Mapped, class Hash = f14::DefaultHasher<std::string>, class Eq = f14::DefaultKeyEqual<std::string>, class Alloc = f14::DefaultAlloc<std::pair<std::string const, Mapped>>>
struct folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >

Definition at line 29 of file StringKeyedUnorderedMap.h.

Member Typedef Documentation

template<class Mapped, class Hash = f14::DefaultHasher<std::string>, class Eq = f14::DefaultKeyEqual<std::string>, class Alloc = f14::DefaultAlloc<std::pair<std::string const, Mapped>>>
using folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >::require_transparent_eq = typename Eq::is_transparent

Definition at line 34 of file StringKeyedUnorderedMap.h.

template<class Mapped, class Hash = f14::DefaultHasher<std::string>, class Eq = f14::DefaultKeyEqual<std::string>, class Alloc = f14::DefaultAlloc<std::pair<std::string const, Mapped>>>
using folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >::require_transparent_hash = typename Hash::is_transparent

Definition at line 33 of file StringKeyedUnorderedMap.h.

template<class Mapped, class Hash = f14::DefaultHasher<std::string>, class Eq = f14::DefaultKeyEqual<std::string>, class Alloc = f14::DefaultAlloc<std::pair<std::string const, Mapped>>>
using folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >::Super = F14NodeMap<std::string, Mapped, Hash, Eq, Alloc>

Definition at line 31 of file StringKeyedUnorderedMap.h.

Constructor & Destructor Documentation

template<class Mapped, class Hash = f14::DefaultHasher<std::string>, class Eq = f14::DefaultKeyEqual<std::string>, class Alloc = f14::DefaultAlloc<std::pair<std::string const, Mapped>>>
folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >::StringKeyedUnorderedMap ( )
inline

Definition at line 38 of file StringKeyedUnorderedMap.h.

38 : Super() {}
F14NodeMap< std::string, Mapped, Hash, Eq, Alloc > Super

Member Function Documentation

template<class Mapped, class Hash = f14::DefaultHasher<std::string>, class Eq = f14::DefaultKeyEqual<std::string>, class Alloc = f14::DefaultAlloc<std::pair<std::string const, Mapped>>>
std::pair<typename Super::iterator, bool> folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >::insert ( std::pair< StringPiece, Mapped > const &  p)
inline

Definition at line 44 of file StringKeyedUnorderedMap.h.

Referenced by TEST().

45  {
46  return this->emplace(p.first, p.second);
47  }
template<class Mapped, class Hash = f14::DefaultHasher<std::string>, class Eq = f14::DefaultKeyEqual<std::string>, class Alloc = f14::DefaultAlloc<std::pair<std::string const, Mapped>>>
std::pair<typename Super::iterator, bool> folly::StringKeyedUnorderedMap< Mapped, Hash, Eq, Alloc >::insert ( std::pair< StringPiece, Mapped > &&  p)
inline

Definition at line 48 of file StringKeyedUnorderedMap.h.

References folly::gen::move.

49  {
50  return this->emplace(std::move(p));
51  }
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567

The documentation for this struct was generated from the following file: