2019-05-04 09:05:58 +07:00
2019-05-04 09:05:58 +07:00
2019-05-04 09:05:58 +07:00
2019-05-04 09:05:58 +07:00
2019-05-04 09:05:58 +07:00
2019-05-04 09:05:58 +07:00
2019-05-04 09:05:58 +07:00
2019-05-04 09:05:58 +07:00
2019-05-04 18:10:51 +07:00
2019-05-04 18:10:51 +07:00
2019-05-04 09:05:58 +07:00

flat.hpp

travis appveyor codecov language license paypal

Installation

flat.hpp is a header only library. All you need to do is copy the header files (flat_set.hpp and flat_map.hpp) into your project and include them:

#include "flat_set.hpp" // for flat_set<K>
#include "flat_map.hpp" // for flat_map<K,V>

API

template < typename Key
         , typename Compare = std::less<Key>
         , typename Allocator = std::allocator<Key>
         , typename Container = std::vector<Key, Allocator> >
class flat_set;

Member types

Member type Definition
key_type Key
value_type Key
size_type Container::size_type
difference_type Container::difference_type
key_compare Compare
value_compare Compare
allocator_type Allocator
container_type Container
reference Container::reference
const_reference Container::const_reference
pointer Container::pointer
const_pointer Container::const_pointer
iterator Container::iterator
const_iterator Container::const_iterator
reverse_iterator Container::reverse_iterator
const_reverse_iterator Container::const_reverse_iterator
template < typename Key
         , typename Value
         , typename Compare = std::less<Key>
         , typename Allocator = std::allocator<std::pair<Key, Value>>
         , typename Container = std::vector<std::pair<Key, Value>, Allocator> >
class flat_map;
Member type Definition
key_type Key
mapped_type Value
value_type Container::value_type
size_type Container::size_type
difference_type Container::difference_type
key_compare Compare
allocator_type Allocator
container_type Container
reference Container::reference
const_reference Container::const_reference
pointer Container::pointer
const_pointer Container::const_pointer
iterator Container::iterator
const_iterator Container::const_iterator
reverse_iterator Container::reverse_iterator
const_reverse_iterator Container::const_reverse_iterator

License (MIT)

Description
Library of flat vector-like based associative containers
Readme 456 KiB
Languages
C++ 97.4%
CMake 2.6%