forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
P0288 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
P0288 #1
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
599f6f2
P0288
philnik777 a09c974
Use new implemntation approach - I haven't added any new tests yet. I…
philnik777 64e9af5
Address some comments
philnik777 191a9f3
Address the rest of the comments
philnik777 63afe89
Improve tests and fix a bug
philnik777 54c0bc8
Address comments
philnik777 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,72 @@ | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
| // See https://llvm.org/LICENSE.txt for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| #ifndef _LIBCPP___FUNCTIONAL_MOVE_ONLY_FUNCTION_H | ||
| #define _LIBCPP___FUNCTIONAL_MOVE_ONLY_FUNCTION_H | ||
|
|
||
| #include <__config> | ||
|
|
||
| #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | ||
| # pragma GCC system_header | ||
| #endif | ||
|
|
||
| #if _LIBCPP_STD_VER > 20 | ||
|
|
||
| // NOLINTBEGIN(readability-duplicate-include) | ||
| # define _LIBCPP_IN_MOVE_ONLY_FUNCTION_H | ||
|
|
||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF & | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF && | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_CV const | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_CV const | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF & | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_CV const | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF && | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_NOEXCEPT true | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_NOEXCEPT true | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF & | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_NOEXCEPT true | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF && | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_NOEXCEPT true | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_CV const | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_NOEXCEPT true | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_CV const | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF & | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_NOEXCEPT true | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_CV const | ||
| # define _LIBCPP_MOVE_ONLY_FUNCTION_REF && | ||
| # include <__functional/move_only_function_impl.h> | ||
|
|
||
| # undef _LIBCPP_IN_MOVE_ONLY_FUNCTION_H | ||
| // NOLINTEND(readability-duplicate-include) | ||
|
|
||
| #endif // _LIBCPP_STD_VER > 20 | ||
|
|
||
| #endif // _LIBCPP___FUNCTIONAL_MOVE_ONLY_FUNCTION_H |
This file contains hidden or 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 @@ | ||
| //===----------------------------------------------------------------------===// | ||
| // | ||
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
| // See https://llvm.org/LICENSE.txt for license information. | ||
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
| // | ||
| //===----------------------------------------------------------------------===// | ||
|
|
||
| #ifndef _LIBCPP___FUNCTIONAL_MOVE_ONLY_FUNCTION_COMMON_H | ||
| #define _LIBCPP___FUNCTIONAL_MOVE_ONLY_FUNCTION_COMMON_H | ||
|
|
||
| #include <__config> | ||
| #include <__type_traits/integral_constant.h> | ||
|
|
||
| #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) | ||
| # pragma GCC system_header | ||
| #endif | ||
|
|
||
| _LIBCPP_BEGIN_NAMESPACE_STD | ||
|
|
||
| template <class...> | ||
| class move_only_function; | ||
|
|
||
| template <class...> | ||
| struct __is_move_only_function : false_type {}; | ||
|
|
||
| template <class... _Args> | ||
| struct __is_move_only_function<move_only_function<_Args...>> : true_type {}; | ||
|
|
||
| _LIBCPP_END_NAMESPACE_STD | ||
|
|
||
| #endif // _LIBCPP___FUNCTIONAL_MOVE_ONLY_FUNCTION_COMMON_H | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.