]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/beast/core/file.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / beast / core / file.hpp
1 //
2 // Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // Official repository: https://github.com/boostorg/beast
8 //
9
10 #ifndef BOOST_BEAST_CORE_FILE_HPP
11 #define BOOST_BEAST_CORE_FILE_HPP
12
13 #include <boost/beast/core/detail/config.hpp>
14 #include <boost/beast/core/file_base.hpp>
15 #include <boost/beast/core/file_posix.hpp>
16 #include <boost/beast/core/file_stdio.hpp>
17 #include <boost/beast/core/file_win32.hpp>
18 #include <boost/config.hpp>
19
20 namespace boost {
21 namespace beast {
22
23 /** An implementation of File.
24
25 This alias is set to the best available implementation
26 of @b File given the platform and build settings.
27 */
28 #if BOOST_BEAST_DOXYGEN
29 struct file : file_stdio
30 {
31 };
32 #else
33 #if BOOST_BEAST_USE_WIN32_FILE
34 using file = file_win32;
35 #elif BOOST_BEAST_USE_POSIX_FILE
36 using file = file_posix;
37 #else
38 using file = file_stdio;
39 #endif
40 #endif
41
42 } // beast
43 } // boost
44
45 #endif