WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
container.hpp File Reference

Aliasas for STL containers using a certain RawAllocator. More...

#include "config.hpp"
#include <functional>
#include <utility>
#include <deque>
#include <forward_list>
#include <list>
#include <map>
#include <queue>
#include <scoped_allocator>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "std_allocator.hpp"
#include "threading.hpp"

Go to the source code of this file.

Classes

class  wpi::memory::vector< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::vector_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::deque< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::deque_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::list< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::list_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::forward_list< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::forward_list_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::set< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::set_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::multiset< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::multiset_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::map< Key, Value, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::map_scoped_alloc< Key, Value, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::multimap< Key, Value, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::multimap_scoped_alloc< Key, Value, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::unordered_set< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::unordered_set_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::unordered_multiset< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::unordered_multiset_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::unordered_map< Key, Value, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::unordered_map_scoped_alloc< Key, Value, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::unordered_multimap< Key, Value, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::unordered_multimap_scoped_alloc< Key, Value, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::stack< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::stack_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::queue< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::queue_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::priority_queue< T, RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
class  wpi::memory::priority_queue_scoped_alloc< T, RawAllocator >
 Same as above but uses std::scoped_allocator_adaptor so the allocator is inherited by all nested containers. More...
 
class  wpi::memory::string< RawAllocator >
 Alias template for an STL container that uses a certain RawAllocator. More...
 
struct  wpi::memory::forward_list_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::list_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::set_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::multiset_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::unordered_set_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::unordered_multiset_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::map_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::multimap_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::unordered_map_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::unordered_multimap_node_size< T >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::shared_ptr_node_size< T, StdAllocator >
 Contains the node size of a node based STL container with a specific type. More...
 
struct  wpi::memory::allocate_shared_node_size< T, RawAllocator >
 The node size required by allocate_shared. More...
 

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::memory
 Memory namespace.
 

Functions

template<typename T , class RawAllocator , class Container = deque<T, RawAllocator>>
std::stack< T, Container > wpi::memory::make_stack (RawAllocator &allocator)
 
template<typename T , class RawAllocator , class Container = deque<T, RawAllocator>>
std::queue< T, Container > wpi::memory::make_queue (RawAllocator &allocator)
 
template<typename T , class RawAllocator , class Container = deque<T, RawAllocator>, class Compare = std::less<T>>
std::priority_queue< T, Container, Compare > wpi::memory::make_priority_queue (RawAllocator &allocator, Compare comp={})
 

Detailed Description

Aliasas for STL containers using a certain RawAllocator.

Note
Only available on a hosted implementation.