Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends
testing::ThrowingAllocator< T, Spec > Class Template Reference

#include <exception_safety_testing.h>

Inheritance diagram for testing::ThrowingAllocator< T, Spec >:
Inheritance graph
[legend]

List of all members.

Classes

struct  rebind

Public Member Functions

pointer allocate (size_type n) noexcept(IsSpecified(AllocSpec
pointer allocate (size_type n, const_void_pointer) noexcept(IsSpecified(AllocSpec
template<typename U , typename... Args>
void construct (U *ptr, Args &&...args) noexcept(IsSpecified(AllocSpec
void deallocate (pointer ptr, size_type) noexcept
template<typename U >
void destroy (U *p) noexcept
size_type max_size () const noexcept
template<typename U >
bool operator!= (const ThrowingAllocator< U, Spec > &other) const noexcept
ThrowingAllocatoroperator= (const ThrowingAllocator &other) noexcept
template<typename U >
ThrowingAllocatoroperator= (const ThrowingAllocator< U, Spec > &other) noexcept
template<typename U >
ThrowingAllocatoroperator= (ThrowingAllocator< U, Spec > &&other) noexcept
template<typename U >
bool operator== (const ThrowingAllocator< U, Spec > &other) const noexcept
ThrowingAllocator select_on_container_copy_construction () noexcept(IsSpecified(AllocSpec
 ThrowingAllocator ()
template<typename U >
 ThrowingAllocator (const ThrowingAllocator< U, Spec > &other) noexcept
 ThrowingAllocator (const ThrowingAllocator &other) noexcept
template<typename U >
 ThrowingAllocator (ThrowingAllocator< U, Spec > &&other) noexcept
 ThrowingAllocator (ThrowingAllocator &&other) noexcept
 ~ThrowingAllocator () noexcept

Private Member Functions

void ReadState ()
void ReadStateAndMaybeThrow (absl::string_view msg) const
const std::shared_ptr< const
int > & 
State () const
std::shared_ptr< const int > & State ()

Static Private Member Functions

static std::string GetInstanceString (int dummy)
static constexpr bool IsSpecified (AllocSpec spec)

Private Attributes

std::shared_ptr< const int > dummy_

Static Private Attributes

static int next_id_ = 0

Friends

class ThrowingAllocator

Detailed Description

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
class testing::ThrowingAllocator< T, Spec >

Definition at line 618 of file exception_safety_testing.h.


Constructor & Destructor Documentation

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
testing::ThrowingAllocator< T, Spec >::ThrowingAllocator ( ) [inline]

Definition at line 641 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U >
testing::ThrowingAllocator< T, Spec >::ThrowingAllocator ( const ThrowingAllocator< U, Spec > &  other) [inline]

Definition at line 647 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
testing::ThrowingAllocator< T, Spec >::ThrowingAllocator ( const ThrowingAllocator< T, Spec > &  other) [inline]

Definition at line 653 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U >
testing::ThrowingAllocator< T, Spec >::ThrowingAllocator ( ThrowingAllocator< U, Spec > &&  other) [inline]

Definition at line 658 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
testing::ThrowingAllocator< T, Spec >::ThrowingAllocator ( ThrowingAllocator< T, Spec > &&  other) [inline]

Definition at line 662 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
testing::ThrowingAllocator< T, Spec >::~ThrowingAllocator ( )

Member Function Documentation

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
pointer testing::ThrowingAllocator< T, Spec >::allocate ( size_type  n) [inline]

Definition at line 691 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
pointer testing::ThrowingAllocator< T, Spec >::allocate ( size_type  n,
const_void_pointer   
) [inline]

Definition at line 697 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U , typename... Args>
void testing::ThrowingAllocator< T, Spec >::construct ( U *  ptr,
Args &&...  args 
) [inline]

Definition at line 708 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
void testing::ThrowingAllocator< T, Spec >::deallocate ( pointer  ptr,
size_type   
) [inline]

Definition at line 702 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U >
void testing::ThrowingAllocator< T, Spec >::destroy ( U *  p) [inline]

Definition at line 715 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
static std::string testing::ThrowingAllocator< T, Spec >::GetInstanceString ( int  dummy) [inline, static, private]

Definition at line 745 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
static constexpr bool testing::ThrowingAllocator< T, Spec >::IsSpecified ( AllocSpec  spec) [inline, static, private]

Definition at line 619 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
size_type testing::ThrowingAllocator< T, Spec >::max_size ( ) const [inline]

Definition at line 720 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U >
bool testing::ThrowingAllocator< T, Spec >::operator!= ( const ThrowingAllocator< U, Spec > &  other) const [inline]

Definition at line 737 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
ThrowingAllocator& testing::ThrowingAllocator< T, Spec >::operator= ( const ThrowingAllocator< T, Spec > &  other) [inline]

Definition at line 668 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U >
ThrowingAllocator& testing::ThrowingAllocator< T, Spec >::operator= ( const ThrowingAllocator< U, Spec > &  other) [inline]

Definition at line 674 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U >
ThrowingAllocator& testing::ThrowingAllocator< T, Spec >::operator= ( ThrowingAllocator< U, Spec > &&  other) [inline]

Definition at line 681 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
template<typename U >
bool testing::ThrowingAllocator< T, Spec >::operator== ( const ThrowingAllocator< U, Spec > &  other) const [inline]

Definition at line 732 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
void testing::ThrowingAllocator< T, Spec >::ReadState ( ) [inline, private]

Definition at line 754 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
void testing::ThrowingAllocator< T, Spec >::ReadStateAndMaybeThrow ( absl::string_view  msg) const [inline, private]

Definition at line 760 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
ThrowingAllocator testing::ThrowingAllocator< T, Spec >::select_on_container_copy_construction ( ) [inline]

Definition at line 724 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
const std::shared_ptr<const int>& testing::ThrowingAllocator< T, Spec >::State ( ) const [inline, private]

Definition at line 751 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
std::shared_ptr<const int>& testing::ThrowingAllocator< T, Spec >::State ( ) [inline, private]

Definition at line 752 of file exception_safety_testing.h.


Friends And Related Function Documentation

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
friend class ThrowingAllocator [friend]

Definition at line 742 of file exception_safety_testing.h.


Member Data Documentation

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
std::shared_ptr<const int> testing::ThrowingAllocator< T, Spec >::dummy_ [private]

Definition at line 768 of file exception_safety_testing.h.

template<typename T, AllocSpec Spec = AllocSpec::kEverythingThrows>
int testing::ThrowingAllocator< T, Spec >::next_id_ = 0 [static, private]

Definition at line 767 of file exception_safety_testing.h.


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


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:17