-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modernisation: introduce
uses_optional
api
- Loading branch information
1 parent
5e9bc81
commit e650f56
Showing
8 changed files
with
196 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (C) 2023 Tim Blechmann | ||
// | ||
// Distributed under the Boost Software License, Version 1.0. (See | ||
// accompanying file LICENSE_1_0.txt or copy at | ||
// http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
#ifndef BOOST_LOCKFREE_DETAIL_USES_OPTIONAL_HPP | ||
#define BOOST_LOCKFREE_DETAIL_USES_OPTIONAL_HPP | ||
|
||
#include <boost/config.hpp> | ||
|
||
#ifndef BOOST_NO_CXX17_HDR_OPTIONAL | ||
|
||
# include <optional> | ||
|
||
namespace boost { namespace lockfree { | ||
|
||
struct uses_optional_t | ||
{}; | ||
|
||
# ifdef BOOST_NO_CXX17_INLINE_VARIABLES | ||
static | ||
# else | ||
inline | ||
# endif | ||
constexpr uses_optional_t uses_optional; | ||
|
||
}} // namespace boost::lockfree | ||
|
||
#endif | ||
|
||
#endif /* BOOST_LOCKFREE_DETAIL_USES_OPTIONAL_HPP */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters