Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
Loading...
Searching...
No Matches
units::detail::is_unit_impl< T, bool > Struct Template Reference

is_unit implementation: an incomplete or non-class type is never a unit, decided WITHOUT instantiating is_base_of (which is ill-formed on an incomplete non-same class type). More...

#include <core.h>

Inheritance diagram for units::detail::is_unit_impl< T, bool >:
[legend]
Collaboration diagram for units::detail::is_unit_impl< T, bool >:
[legend]

Detailed Description

template<class T, bool = is_complete<T>::value>
struct units::detail::is_unit_impl< T, bool >

is_unit implementation: an incomplete or non-class type is never a unit, decided WITHOUT instantiating is_base_of (which is ill-formed on an incomplete non-same class type).

Only a complete type reaches the is_base_of test in the specialization below.


The documentation for this struct was generated from the following file:
  • /home/runner/work/units/units/include/units/core.h