#include <exception_safety_testing.h>

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 |
| 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 |
| 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 |
Definition at line 618 of file exception_safety_testing.h.
| testing::ThrowingAllocator< T, Spec >::ThrowingAllocator | ( | ) | [inline] |
Definition at line 641 of file exception_safety_testing.h.
| testing::ThrowingAllocator< T, Spec >::ThrowingAllocator | ( | const ThrowingAllocator< U, Spec > & | other | ) | [inline] |
Definition at line 647 of file exception_safety_testing.h.
| testing::ThrowingAllocator< T, Spec >::ThrowingAllocator | ( | const ThrowingAllocator< T, Spec > & | other | ) | [inline] |
Definition at line 653 of file exception_safety_testing.h.
| testing::ThrowingAllocator< T, Spec >::ThrowingAllocator | ( | ThrowingAllocator< U, Spec > && | other | ) | [inline] |
Definition at line 658 of file exception_safety_testing.h.
| testing::ThrowingAllocator< T, Spec >::ThrowingAllocator | ( | ThrowingAllocator< T, Spec > && | other | ) | [inline] |
Definition at line 662 of file exception_safety_testing.h.
| testing::ThrowingAllocator< T, Spec >::~ThrowingAllocator | ( | ) |
| pointer testing::ThrowingAllocator< T, Spec >::allocate | ( | size_type | n | ) | [inline] |
Definition at line 691 of file exception_safety_testing.h.
| pointer testing::ThrowingAllocator< T, Spec >::allocate | ( | size_type | n, |
| const_void_pointer | |||
| ) | [inline] |
Definition at line 697 of file exception_safety_testing.h.
| void testing::ThrowingAllocator< T, Spec >::construct | ( | U * | ptr, |
| Args &&... | args | ||
| ) | [inline] |
Definition at line 708 of file exception_safety_testing.h.
| void testing::ThrowingAllocator< T, Spec >::deallocate | ( | pointer | ptr, |
| size_type | |||
| ) | [inline] |
Definition at line 702 of file exception_safety_testing.h.
| void testing::ThrowingAllocator< T, Spec >::destroy | ( | U * | p | ) | [inline] |
Definition at line 715 of file exception_safety_testing.h.
| static std::string testing::ThrowingAllocator< T, Spec >::GetInstanceString | ( | int | dummy | ) | [inline, static, private] |
Definition at line 745 of file exception_safety_testing.h.
| static constexpr bool testing::ThrowingAllocator< T, Spec >::IsSpecified | ( | AllocSpec | spec | ) | [inline, static, private] |
Definition at line 619 of file exception_safety_testing.h.
| size_type testing::ThrowingAllocator< T, Spec >::max_size | ( | ) | const [inline] |
Definition at line 720 of file exception_safety_testing.h.
| bool testing::ThrowingAllocator< T, Spec >::operator!= | ( | const ThrowingAllocator< U, Spec > & | other | ) | const [inline] |
Definition at line 737 of file exception_safety_testing.h.
| ThrowingAllocator& testing::ThrowingAllocator< T, Spec >::operator= | ( | const ThrowingAllocator< T, Spec > & | other | ) | [inline] |
Definition at line 668 of file exception_safety_testing.h.
| ThrowingAllocator& testing::ThrowingAllocator< T, Spec >::operator= | ( | const ThrowingAllocator< U, Spec > & | other | ) | [inline] |
Definition at line 674 of file exception_safety_testing.h.
| ThrowingAllocator& testing::ThrowingAllocator< T, Spec >::operator= | ( | ThrowingAllocator< U, Spec > && | other | ) | [inline] |
Definition at line 681 of file exception_safety_testing.h.
| bool testing::ThrowingAllocator< T, Spec >::operator== | ( | const ThrowingAllocator< U, Spec > & | other | ) | const [inline] |
Definition at line 732 of file exception_safety_testing.h.
| void testing::ThrowingAllocator< T, Spec >::ReadState | ( | ) | [inline, private] |
Definition at line 754 of file exception_safety_testing.h.
| void testing::ThrowingAllocator< T, Spec >::ReadStateAndMaybeThrow | ( | absl::string_view | msg | ) | const [inline, private] |
Definition at line 760 of file exception_safety_testing.h.
| ThrowingAllocator testing::ThrowingAllocator< T, Spec >::select_on_container_copy_construction | ( | ) | [inline] |
Definition at line 724 of file exception_safety_testing.h.
| const std::shared_ptr<const int>& testing::ThrowingAllocator< T, Spec >::State | ( | ) | const [inline, private] |
Definition at line 751 of file exception_safety_testing.h.
| std::shared_ptr<const int>& testing::ThrowingAllocator< T, Spec >::State | ( | ) | [inline, private] |
Definition at line 752 of file exception_safety_testing.h.
friend class ThrowingAllocator [friend] |
Definition at line 742 of file exception_safety_testing.h.
std::shared_ptr<const int> testing::ThrowingAllocator< T, Spec >::dummy_ [private] |
Definition at line 768 of file exception_safety_testing.h.
int testing::ThrowingAllocator< T, Spec >::next_id_ = 0 [static, private] |
Definition at line 767 of file exception_safety_testing.h.