forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[base] Add base::is_constant_evaluated()
This change adds base::is_constant_evaluated(), a backport of C++20's std::is_constant_evaluated(). Its intended use is within constexpr functions, that can change their implementation depending on whether or not they are constant evaluated. Bug: None Change-Id: I14a01c350d10fc8411fc5574889703af89b4c610 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2831596 Reviewed-by: Daniel Cheng <dcheng@chromium.org> Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#873925}
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 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