Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

no_refcount_policy.hpp
Go to the documentation of this file.
1 //
2 // immer: immutable data structures for C++
3 // Copyright (C) 2016, 2017, 2018 Juan Pedro Bolivar Puente
4 //
5 // This software is distributed under the Boost Software License, Version 1.0.
6 // See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
7 //
8 
9 #pragma once
10 
11 namespace immer {
12 
13 struct disowned {};
14 
16 {
17  bool try_lock() { return true; }
18  void lock() {}
19  void unlock() {}
20 
21  struct scoped_lock
22  {
24  };
25 };
26 
32 {
34 
37 
38  void inc() {}
39  bool dec() { return false; }
40  void dec_unsafe() {}
41  bool unique() { return false; }
42 };
43 
44 } // namespace immer
Released under the MIT license