COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
Namespaces | Functions
detect.h File Reference

Various compile-time detection functions of whether specific member functions and/or types exist. More...

#include "comms/util/details/detect.h"

Go to the source code of this file.

Namespaces

namespace  comms
 Main namespace for all classes / functions of COMMS library.
 
namespace  comms::util
 Namespace for various utility classes and/or functions used by COMMS library.
 
namespace  comms::util::detect
 Namespace for various compile-time detection operations of whether a type has certain member types and/or member functions.
 

Functions

template<typename T >
constexpr bool comms::util::detect::hasAssignFunc ()
 Detect whether provided type has assign() member function which can receive two pointers in its arguments.
 
template<typename T >
constexpr bool comms::util::detect::hasClearFunc ()
 Detect whether provided type has clear() member function.
 
template<typename T >
constexpr bool comms::util::detect::hasMaxSizeFunc ()
 Detect whether provided type has max_size() member function.
 
template<typename T >
constexpr bool comms::util::detect::hasPtrSizeConstructor ()
 Detect whether provided type has a constructor that receives a pointer + size parameters.
 
template<typename T >
constexpr bool comms::util::detect::hasRemoveSuffixFunc ()
 Detect whether provided type has remove_suffix() member function.
 
template<typename T >
constexpr bool comms::util::detect::hasReserveFunc ()
 Detect whether provided type has reserve() member function.
 
template<typename T >
constexpr bool comms::util::detect::hasResizeFunc ()
 Detect whether provided type has resize() member function.
 
template<typename T >
constexpr bool comms::util::detect::isStdSpan ()
 Detect whether provided type is std::span.
 

Detailed Description

Various compile-time detection functions of whether specific member functions and/or types exist.