AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
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
16namespace Aws
17{
18
19template< typename K, typename V > using Map = std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > >;
20template< 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 > > >;
21template< 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
31template<typename V> using CStringMap = std::map<const char*, V, CompareStrings, Aws::Allocator<std::pair<const char*, V> > >;
32
33} // namespace Aws
const cJSON *const b
Definition: cJSON.h:269
std::allocator< T > Allocator
Definition: AWSAllocator.h:39
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
std::map< const char *, V, CompareStrings, Aws::Allocator< std::pair< const char *, V > > > CStringMap
Definition: AWSMap.h:31
std::multimap< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > MultiMap
Definition: AWSMap.h:21
std::unordered_map< K, V, std::hash< K >, std::equal_to< K >, Aws::Allocator< std::pair< const K, V > > > UnorderedMap
Definition: AWSMap.h:20
bool operator()(const char *a, const char *b) const
Definition: AWSMap.h:25