-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: iceseer <[email protected]>
- Loading branch information
Showing
3 changed files
with
179 additions
and
167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright Quadrivium LLC | ||
* All Rights Reserved | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <type_traits> | ||
|
||
namespace kagome::scale { | ||
template <typename F> | ||
concept Invocable = std::is_invocable_v<F, const uint8_t *const, size_t>; | ||
|
||
template <typename T> | ||
concept IsEnum = std::is_enum_v<std::decay_t<T>>; | ||
|
||
template <typename T> | ||
concept IsNotEnum = !std::is_enum_v<std::decay_t<T>>; | ||
} // namespace kagome::scale |
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
Oops, something went wrong.