mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +08:00
Add traits::unrefcv_t for later usage
This commit is contained in:
parent
4ae5601563
commit
8e7af3a320
@ -40,6 +40,12 @@
|
||||
namespace cti {
|
||||
namespace detail {
|
||||
namespace traits {
|
||||
/// Removes all references and qualifiers from the given type T,
|
||||
/// since std::decay has too much overhead through checking for
|
||||
/// function pointers and arrays also.
|
||||
template <typename T>
|
||||
using unrefcv_t = std::remove_cv_t<std::remove_reference_t<T>>;
|
||||
|
||||
namespace detail {
|
||||
template <typename T, typename... Args>
|
||||
struct index_of_impl;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user