AWS SDK for C++  1.8.95
AWS SDK for C++
AWSMap.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
11 
12 #include <map>
13 #include <unordered_map>
14 #include <cstring>
15 
16 namespace Aws
17 {
18 
19 template< typename K, typename V > using Map = std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > >;
20 template< typename K, typename V > using UnorderedMap = std::unordered_map< K, V, std::hash< K >, std::equal_to< K >, Aws::Allocator< std::pair< const K, V > > >;
21 template< typename K, typename V > using MultiMap = std::multimap< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > >;
22 
24 {
25  bool operator()(const char* a, const char* b) const
26  {
27  return std::strcmp(a, b) < 0;
28  }
29 };
30 
31 template<typename V> using CStringMap = std::map<const char*, V, CompareStrings, Aws::Allocator<std::pair<const char*, V> > >;
32 
33 } // namespace Aws
std::map< const char *, V, CompareStrings, Aws::Allocator< std::pair< const char *, V > > > CStringMap
Definition: AWSMap.h:31
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
const cJSON *const b
Definition: cJSON.h:255
std::unordered_map< K, V, std::hash< K >, std::equal_to< K >, Aws::Allocator< std::pair< const K, V > > > UnorderedMap
Definition: AWSMap.h:20
std::allocator< T > Allocator
Definition: AWSAllocator.h:84
bool operator()(const char *a, const char *b) const
Definition: AWSMap.h:25
std::multimap< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > MultiMap
Definition: AWSMap.h:21