Dev Essential
Loading...
Searching...
No Matches
reference_counted_object_disable_dynamic_alloc.h
Go to the documentation of this file.
1
14
15#ifndef A_UTIL_UTIL_RESULT_IMPL_REFERENCE_COUNTED_OBJECT_DISABLE_DYNAMIC_ALLOC_HEADER_INCLUDED
16#define A_UTIL_UTIL_RESULT_IMPL_REFERENCE_COUNTED_OBJECT_DISABLE_DYNAMIC_ALLOC_HEADER_INCLUDED
17
20
21#include <cstddef> //std::size_t
22
23namespace a_util {
24namespace result {
25namespace detail {
29
33template <>
35public:
38 {
39 }
40
42 static void* operator new(std::size_t) throw()
43 {
44 return nullptr;
45 }
46
48 static void operator delete(void*, std::size_t)
49 {
50 }
51};
52
53} // namespace detail
54} // namespace result
55} // namespace a_util
56
57#endif // A_UTIL_UTIL_RESULT_IMPL_REFERENCE_COUNTED_OBJECT_DISABLE_DYNAMIC_ALLOC_HEADER_INCLUDED
Definition error_description_intf.h:28
ReferenceCountedObject(...)
CTOR, does nothing and should never be used directly.
Definition reference_counted_object_disable_dynamic_alloc.h:37
Serves as namespace for result implementation details.
Definition result.h:22
Serves as component for functionality handling error and return types.
Definition result.h:20
Serves as the root component, with common functionality documented in core functionality.
Definition base.h:24
type needed for reference counting
Definition reference_counted_object_disable_dynamic_alloc.h:27