1// 2// detail/null_fenced_block.hpp 3// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4// 5// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) 6// 7// Distributed under the Boost Software License, Version 1.0. (See accompanying 8// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 9// 10 11#ifndef ASIO_DETAIL_NULL_FENCED_BLOCK_HPP 12#define ASIO_DETAIL_NULL_FENCED_BLOCK_HPP 13 14 15#include "asio/detail/push_options.hpp" 16 17namespace asio { 18namespace detail { 19 20class null_fenced_block 21 : private noncopyable 22{ 23public: 24 enum half_or_full_t { half, full }; 25 26 // Constructor. 27 explicit null_fenced_block(half_or_full_t) 28 { 29 } 30 31 // Destructor. 32 ~null_fenced_block() 33 { 34 } 35}; 36 37} // namespace detail 38} // namespace asio 39 40#include "asio/detail/pop_options.hpp" 41 42#endif // ASIO_DETAIL_NULL_FENCED_BLOCK_HPP 43