Warning, file /include/boost/core/fclose_deleter.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef BOOST_CORE_FCLOSE_DELETER_HPP
0018 #define BOOST_CORE_FCLOSE_DELETER_HPP
0019
0020 #include <cstdio>
0021 #include <boost/config.hpp>
0022
0023 #ifdef BOOST_HAS_PRAGMA_ONCE
0024 #pragma once
0025 #endif
0026
0027 namespace boost {
0028
0029
0030 namespace fclose_deleter_ns {
0031
0032
0033 struct fclose_deleter
0034 {
0035
0036 typedef void result_type;
0037
0038
0039
0040 void operator() (std::FILE* p) const BOOST_NOEXCEPT
0041 {
0042 if (BOOST_LIKELY(!!p))
0043 std::fclose(p);
0044 }
0045 };
0046
0047 }
0048
0049 using fclose_deleter_ns::fclose_deleter;
0050
0051 }
0052
0053 #endif