Sha256: 4d0f0932e1a8a216b12d22b60d2a909afc10c67b2b49c82edeb6ccd84906c1bf

Contents?: true

Size: 1.06 KB

Versions: 85

Compression:

Stored size: 1.06 KB

Contents

//  local_free_on_exit.hpp  ------------------------------------------------------------//

//  Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//  Copyright (c) 2010 Beman Dawes

//  Distributed under the Boost Software License, Version 1.0.
//  See http://www.boost.org/LICENSE_1_0.txt

//  This is derived from boost/asio/detail/local_free_on_block_exit.hpp to avoid
//  a dependency on asio. Thanks to Chris Kohlhoff for pointing it out.

#ifndef BOOST_SYSTEM_LOCAL_FREE_ON_EXIT_HPP
#define BOOST_SYSTEM_LOCAL_FREE_ON_EXIT_HPP

namespace boost {
namespace system {
namespace detail {

class local_free_on_destruction
{
public:
  explicit local_free_on_destruction(void* p)
    : p_(p) {}

  ~local_free_on_destruction()
  {
    ::LocalFree(p_);
  }

private:
  void* p_;
  local_free_on_destruction(const local_free_on_destruction&);  // = deleted
  local_free_on_destruction& operator=(const local_free_on_destruction&);  // = deleted
};

} // namespace detail
} // namespace system
} // namespace boost

#endif  // BOOST_SYSTEM_LOCAL_FREE_ON_EXIT_HPP

Version data entries

85 entries across 85 versions & 2 rubygems

Version Path
passenger-5.0.24 src/cxx_supportlib/vendor-modified/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.23 src/cxx_supportlib/vendor-modified/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.22 src/cxx_supportlib/vendor-modified/boost/libs/system/src/local_free_on_destruction.hpp
passenger-4.0.60 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.21 src/cxx_supportlib/vendor-modified/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.20 src/cxx_supportlib/vendor-modified/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.19 src/cxx_supportlib/vendor-modified/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.18 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.17 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.16 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.15 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.14 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.13 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.11 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.10 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.9 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.8 ext/boost/libs/system/src/local_free_on_destruction.hpp
buncher-1.0.5 ext/boost/1.57.0/include/boost//system/detail/local_free_on_destruction.hpp
passenger-5.0.7 ext/boost/libs/system/src/local_free_on_destruction.hpp
passenger-5.0.6 ext/boost/libs/system/src/local_free_on_destruction.hpp