summaryrefslogtreecommitdiff
path: root/libcutl/cutl/shared-ptr/base.hxx
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-03-06 10:24:11 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-03-06 10:24:11 +0100
commit4538829ab86b5a1cd4e845e7eab165029c9d6d46 (patch)
treebbadf39aed0610c8f8f7b41fefff47773b8ac205 /libcutl/cutl/shared-ptr/base.hxx
parent23d41842168ac1a1580111b9c5c73500ceee3d57 (diff)
parentaad5ad9bf0c02aa4e79bc6b7d6c934612fff4026 (diff)
Update upstream source from tag 'upstream/4.2.0'
Update to upstream version '4.2.0' with Debian dir 1b38df7bbcf313223de3c50107ac0255090fe647
Diffstat (limited to 'libcutl/cutl/shared-ptr/base.hxx')
-rw-r--r--libcutl/cutl/shared-ptr/base.hxx92
1 files changed, 0 insertions, 92 deletions
diff --git a/libcutl/cutl/shared-ptr/base.hxx b/libcutl/cutl/shared-ptr/base.hxx
deleted file mode 100644
index f2bfecc..0000000
--- a/libcutl/cutl/shared-ptr/base.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-// file : cutl/shared-ptr/base.hxx
-// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CUTL_SHARED_PTR_BASE_HXX
-#define CUTL_SHARED_PTR_BASE_HXX
-
-#include <new>
-#include <cstddef> // std::size_t
-
-#include <cutl/exception.hxx>
-
-#include <cutl/details/export.hxx>
-
-namespace cutl
-{
- struct LIBCUTL_EXPORT share
- {
- explicit
- share (char id);
-
- bool
- operator== (share) const;
-
- private:
- char id_;
- };
-}
-
-extern LIBCUTL_EXPORT cutl::share shared;
-extern LIBCUTL_EXPORT cutl::share exclusive;
-
-LIBCUTL_EXPORT void*
-operator new (std::size_t, cutl::share) throw (std::bad_alloc);
-
-LIBCUTL_EXPORT void
-operator delete (void*, cutl::share) throw ();
-
-namespace cutl
-{
- struct LIBCUTL_EXPORT not_shared: exception
- {
- virtual char const*
- what () const throw ();
- };
-
- struct LIBCUTL_EXPORT shared_base
- {
- shared_base ();
- shared_base (shared_base const&);
- shared_base&
- operator= (shared_base const&);
-
- void
- _inc_ref ();
-
- bool
- _dec_ref ();
-
- std::size_t
- _ref_count () const;
-
- void*
- operator new (std::size_t, share) throw (std::bad_alloc);
-
- void
- operator delete (void*, share) throw ();
-
- void
- operator delete (void*) throw ();
-
- protected:
- std::size_t counter_;
- };
-
- template <typename X>
- inline X*
- inc_ref (X*);
-
- template <typename X>
- inline void
- dec_ref (X*);
-
- template <typename X>
- inline std::size_t
- ref_count (X const*);
-}
-
-#include <cutl/shared-ptr/base.ixx>
-#include <cutl/shared-ptr/base.txx>
-
-#endif // CUTL_SHARED_PTR_BASE_HXX