1/*
2 * Distributed under the Boost Software License, Version 1.0.
3 * (See accompanying file LICENSE_1_0.txt or copy at
4 * https://www.boost.org/LICENSE_1_0.txt)
5 *
6 * Copyright (c) 2024 Andrey Semashev
7 */
8/*!
9 * \file filesystem/detail/type_traits/negation.hpp
10 *
11 * This header contains definition of \c negation type trait.
12 */
13
14#ifndef BOOST_FILESYSTEM_DETAIL_TYPE_TRAITS_NEGATION_HPP_INCLUDED_
15#define BOOST_FILESYSTEM_DETAIL_TYPE_TRAITS_NEGATION_HPP_INCLUDED_
16
17#include <type_traits>
18#include <boost/filesystem/config.hpp>
19
20#if (defined(__cpp_lib_logical_traits) && (__cpp_lib_logical_traits >= 201510l)) || \
21 (defined(BOOST_MSSTL_VERSION) && (BOOST_MSSTL_VERSION >= 140) && (_MSC_FULL_VER >= 190023918) && (BOOST_CXX_VERSION >= 201703l))
22
23namespace boost {
24namespace filesystem {
25namespace detail {
26
27using std::negation;
28
29} // namespace detail
30} // namespace filesystem
31} // namespace boost
32
33#else
34
35#include <boost/type_traits/negation.hpp>
36
37namespace boost {
38namespace filesystem {
39namespace detail {
40
41using boost::negation;
42
43} // namespace detail
44} // namespace filesystem
45} // namespace boost
46
47#endif
48
49#endif // BOOST_FILESYSTEM_DETAIL_TYPE_TRAITS_NEGATION_HPP_INCLUDED_
50

source code of boost/libs/filesystem/include/boost/filesystem/detail/type_traits/negation.hpp