#include <exception_safety_testing.h>
Classes | |
struct | rebind |
Public Types | |
using | const_pointer = const T * |
using | const_reference = const T & |
using | const_void_pointer = const void * |
using | difference_type = ptrdiff_t |
using | is_always_equal = std::false_type |
using | is_nothrow = std::integral_constant< bool, Spec==AllocSpec::kNoThrowAllocate > |
using | pointer = T * |
using | propagate_on_container_copy_assignment = std::true_type |
using | propagate_on_container_move_assignment = std::true_type |
using | propagate_on_container_swap = std::true_type |
using | reference = T & |
using | size_type = size_t |
using | value_type = T |
using | void_pointer = void * |
Public Member Functions | |
pointer | allocate (size_type n) noexcept(IsSpecified(AllocSpec::kNoThrowAllocate)) |
pointer | allocate (size_type n, const_void_pointer) noexcept(IsSpecified(AllocSpec::kNoThrowAllocate)) |
template<typename U , typename... Args> | |
void | construct (U *ptr, Args &&... args) noexcept(IsSpecified(AllocSpec::kNoThrowAllocate)) |
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 |
ThrowingAllocator & | operator= (const ThrowingAllocator &other) noexcept |
template<typename U > | |
ThrowingAllocator & | operator= (const ThrowingAllocator< U, Spec > &other) noexcept |
template<typename U > | |
ThrowingAllocator & | operator= (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::kNoThrowAllocate)) |
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=default | |
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 () |
Private Member Functions inherited from testing::exceptions_internal::TrackedObject | |
TrackedObject (const TrackedObject &)=delete | |
TrackedObject (TrackedObject &&)=delete | |
TrackedObject (std::string description) | |
~TrackedObject () noexcept | |
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 | |
template<typename , AllocSpec > | |
class | ThrowingAllocator |
Definition at line 618 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::const_pointer = const T* |
Definition at line 625 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::const_reference = const T& |
Definition at line 627 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::const_void_pointer = const void* |
Definition at line 629 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::difference_type = ptrdiff_t |
Definition at line 632 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::is_always_equal = std::false_type |
Definition at line 639 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::is_nothrow = std::integral_constant<bool, Spec == AllocSpec::kNoThrowAllocate> |
Definition at line 635 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::pointer = T* |
Definition at line 624 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::propagate_on_container_copy_assignment = std::true_type |
Definition at line 636 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::propagate_on_container_move_assignment = std::true_type |
Definition at line 637 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::propagate_on_container_swap = std::true_type |
Definition at line 638 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::reference = T& |
Definition at line 626 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::size_type = size_t |
Definition at line 631 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::value_type = T |
Definition at line 630 of file exception_safety_testing.h.
using testing::ThrowingAllocator< T, Spec >::void_pointer = void* |
Definition at line 628 of file exception_safety_testing.h.
|
inline |
Definition at line 641 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 647 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 653 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 658 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 662 of file exception_safety_testing.h.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 691 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 697 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 708 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 702 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 715 of file exception_safety_testing.h.
|
inlinestaticprivate |
Definition at line 745 of file exception_safety_testing.h.
|
inlinestaticprivate |
Definition at line 619 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 720 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 737 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 668 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 674 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 681 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 732 of file exception_safety_testing.h.
|
inlineprivate |
Definition at line 754 of file exception_safety_testing.h.
|
inlineprivate |
Definition at line 760 of file exception_safety_testing.h.
|
inlinenoexcept |
Definition at line 724 of file exception_safety_testing.h.
|
inlineprivate |
Definition at line 751 of file exception_safety_testing.h.
|
inlineprivate |
Definition at line 752 of file exception_safety_testing.h.
|
friend |
Definition at line 742 of file exception_safety_testing.h.
|
private |
Definition at line 768 of file exception_safety_testing.h.
|
staticprivate |
Definition at line 767 of file exception_safety_testing.h.