guanaqo 1.0.0-alpha.26
Utilities for scientific software
Loading...
Searching...
No Matches
type-traits.hpp File Reference

Detailed Description

Lightweight type-trait helpers.

Definition in file type-traits.hpp.

#include <concepts>
#include <memory>
#include <type_traits>
Include dependency graph for type-traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  guanaqo::class_from_member_ptr_impl< M >
struct  guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...)>
struct  guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...) const >
struct  guanaqo::last_type< First, Pack >
struct  guanaqo::last_type< Only >
struct  guanaqo::first_type_or_void< First, Pack... >
struct  guanaqo::first_type_or_void<>

Namespaces

namespace  guanaqo

Concepts

concept  guanaqo::no_leading_allocator

Typedefs

template<class M>
using guanaqo::class_from_member_ptr_impl_t
template<auto M>
using guanaqo::class_from_member_ptr_t = class_from_member_ptr_impl_t<decltype(M)>
template<class... Pack>
using guanaqo::last_type_t = typename last_type<Pack...>::type
template<class... Pack>
using guanaqo::first_type_or_void_t = typename first_type_or_void<Pack...>::type

Class Documentation

◆ guanaqo::class_from_member_ptr_impl

struct guanaqo::class_from_member_ptr_impl
Collaboration diagram for guanaqo::class_from_member_ptr_impl< M >:

◆ guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...)>

struct guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...)>
Collaboration diagram for guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...)>:
Class Members
typedef C type C

◆ guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...) const >

struct guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...) const >
Collaboration diagram for guanaqo::class_from_member_ptr_impl< Ret(C::*)(Args...) const >:
Class Members
typedef add_const_t< C > type std::add_const_t<C>