timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
tim::concepts::is_acceptable_conversion< Lhs, Rhs > Struct Template Reference

This concept designates that is safe to perform a static_cast<Lhs>(rhs) where needed. This is primarily used in the tim::component::data_tracker where data_tracker<unsigned int, ...> might be provided another integral type, such as int. More...

#include "timemory/mpl/concepts.hpp"

+ Collaboration diagram for tim::concepts::is_acceptable_conversion< Lhs, Rhs >:

Static Public Attributes

static constexpr bool value
 

Detailed Description

template<typename Lhs, typename Rhs>
struct tim::concepts::is_acceptable_conversion< Lhs, Rhs >

This concept designates that is safe to perform a static_cast<Lhs>(rhs) where needed. This is primarily used in the tim::component::data_tracker where data_tracker<unsigned int, ...> might be provided another integral type, such as int.

Template Parameters
Lhsthe provided type
Rhsthe target type

Definition at line 487 of file concepts.hpp.

Member Data Documentation

◆ value

template<typename Lhs , typename Rhs >
constexpr bool tim::concepts::is_acceptable_conversion< Lhs, Rhs >::value
staticconstexpr
Initial value:
=
(std::is_same<Lhs, Rhs>::value ||
(std::is_integral<Lhs>::value && std::is_integral<Rhs>::value) ||
(std::is_floating_point<Lhs>::value && std::is_floating_point<Rhs>::value))

Definition at line 489 of file concepts.hpp.


The documentation for this struct was generated from the following file: