PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::OwnedAllocator< T, Element > Class Template Reference

#include <owned_storage.hpp>

Data Structures

struct  rebind
 

Public Types

using value_type = T
 
using propagate_on_container_copy_assignment = std::false_type
 
using propagate_on_container_move_assignment = std::false_type
 
using propagate_on_container_swap = std::true_type
 
using is_always_equal = std::false_type
 

Public Member Functions

 OwnedAllocator ()
 
 OwnedAllocator (const OwnedAllocator &other) noexcept
 
template<class U>
 OwnedAllocator (const OwnedAllocator< U, Element > &other) noexcept
 
OwnedAllocator & operator= (const OwnedAllocator &other) noexcept
 
 ~OwnedAllocator ()
 
OwnedAllocator select_on_container_copy_construction () const
 
T * allocate (std::size_t count)
 
void deallocate (T *data, std::size_t count) noexcept
 
void observe_owned_storage (OwnedStorage &out) const noexcept
 
bool contains (const void *object, std::size_t bytes) const noexcept
 
template<class U>
bool operator== (const OwnedAllocator< U, Element > &other) const noexcept
 
template<class U>
bool operator!= (const OwnedAllocator< U, Element > &other) const noexcept
 

Detailed Description

template<class T, class Element = T>
class pineforge::OwnedAllocator< T, Element >

Definition at line 146 of file owned_storage.hpp.

Member Typedef Documentation

◆ value_type

template<class T, class Element = T>
using pineforge::OwnedAllocator< T, Element >::value_type = T

Definition at line 154 of file owned_storage.hpp.

◆ propagate_on_container_copy_assignment

template<class T, class Element = T>
using pineforge::OwnedAllocator< T, Element >::propagate_on_container_copy_assignment = std::false_type

Definition at line 155 of file owned_storage.hpp.

◆ propagate_on_container_move_assignment

template<class T, class Element = T>
using pineforge::OwnedAllocator< T, Element >::propagate_on_container_move_assignment = std::false_type

Definition at line 156 of file owned_storage.hpp.

◆ propagate_on_container_swap

template<class T, class Element = T>
using pineforge::OwnedAllocator< T, Element >::propagate_on_container_swap = std::true_type

Definition at line 157 of file owned_storage.hpp.

◆ is_always_equal

template<class T, class Element = T>
using pineforge::OwnedAllocator< T, Element >::is_always_equal = std::false_type

Definition at line 158 of file owned_storage.hpp.

Constructor & Destructor Documentation

◆ OwnedAllocator() [1/3]

template<class T, class Element = T>
pineforge::OwnedAllocator< T, Element >::OwnedAllocator ( )
inline

Definition at line 160 of file owned_storage.hpp.

◆ OwnedAllocator() [2/3]

template<class T, class Element = T>
pineforge::OwnedAllocator< T, Element >::OwnedAllocator ( const OwnedAllocator< T, Element > & other)
inlinenoexcept

Definition at line 161 of file owned_storage.hpp.

◆ OwnedAllocator() [3/3]

template<class T, class Element = T>
template<class U>
pineforge::OwnedAllocator< T, Element >::OwnedAllocator ( const OwnedAllocator< U, Element > & other)
inlinenoexcept

Definition at line 163 of file owned_storage.hpp.

◆ ~OwnedAllocator()

template<class T, class Element = T>
pineforge::OwnedAllocator< T, Element >::~OwnedAllocator ( )
inline

Definition at line 174 of file owned_storage.hpp.

Member Function Documentation

◆ operator=()

template<class T, class Element = T>
OwnedAllocator & pineforge::OwnedAllocator< T, Element >::operator= ( const OwnedAllocator< T, Element > & other)
inlinenoexcept

Definition at line 166 of file owned_storage.hpp.

◆ select_on_container_copy_construction()

template<class T, class Element = T>
OwnedAllocator pineforge::OwnedAllocator< T, Element >::select_on_container_copy_construction ( ) const
inline

Definition at line 175 of file owned_storage.hpp.

◆ allocate()

template<class T, class Element = T>
T * pineforge::OwnedAllocator< T, Element >::allocate ( std::size_t count)
inline

Definition at line 176 of file owned_storage.hpp.

◆ deallocate()

template<class T, class Element = T>
void pineforge::OwnedAllocator< T, Element >::deallocate ( T * data,
std::size_t count )
inlinenoexcept

Definition at line 196 of file owned_storage.hpp.

◆ observe_owned_storage()

template<class T, class Element = T>
void pineforge::OwnedAllocator< T, Element >::observe_owned_storage ( OwnedStorage & out) const
inlinenoexcept

Definition at line 205 of file owned_storage.hpp.

◆ contains()

template<class T, class Element = T>
bool pineforge::OwnedAllocator< T, Element >::contains ( const void * object,
std::size_t bytes ) const
inlinenoexcept

Definition at line 222 of file owned_storage.hpp.

◆ operator==()

template<class T, class Element = T>
template<class U>
bool pineforge::OwnedAllocator< T, Element >::operator== ( const OwnedAllocator< U, Element > & other) const
inlinenoexcept

Definition at line 233 of file owned_storage.hpp.

◆ operator!=()

template<class T, class Element = T>
template<class U>
bool pineforge::OwnedAllocator< T, Element >::operator!= ( const OwnedAllocator< U, Element > & other) const
inlinenoexcept

Definition at line 237 of file owned_storage.hpp.


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