Sources Pipelines Documentation

Allocators  
nop_unique_ptr.hpp
1 #pragma once
2 
3 #include <memory>
4 
5 
6 namespace boost { namespace utils {
7 
8 struct nop
9 {
10  template <typename T>
11  void operator() (T const &) const noexcept { }
12 };
13 
14 template <typename T>
15 using nop_unique_ptr = std::unique_ptr<T, nop>;
16 
17 } }
18