ADTF  3.18.2
reference_counted_object_disable_dynamic_alloc.h
Go to the documentation of this file.
1 
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 
23 namespace a_util {
24 namespace result {
25 namespace detail {
28 };
29 
33 template <>
35 public:
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
Default implementation of a reference counter.
Serves as the root component, with common functionality documented in core functionality.
Definition: base.h:24
Implements the default reference counted object.
Private API for IErrorDescription type.