Bitcoin Core 32.99.0
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions
not_null.h File Reference
#include <attributes.h>
#include <util/check.h>
#include <compare>
#include <concepts>
#include <cstddef>
#include <functional>
#include <memory>
#include <type_traits>
#include <utility>
Include dependency graph for not_null.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  util::NotNull< T >
 NotNull is intended to be used to denote that a smart pointer type can not hold a nullptr value. More...
 
struct  std::hash< util::NotNull< T > >
 

Namespaces

namespace  util
 

Typedefs

template<typename T , typename Deleter = std::default_delete<T>>
using util::NotNullUniquePtr = NotNull< std::unique_ptr< T, Deleter > >
 
template<typename T >
using util::NotNullSharedPtr = NotNull< std::shared_ptr< T > >
 

Functions

template<class T >
 util::NotNull (T) -> NotNull< T >