1#ifndef PROBFD_CALL_TRAITS_H
2#define PROBFD_CALL_TRAITS_H
12struct is_cheap_to_copy :
public std::bool_constant<std::is_scalar_v<T>> {};
15struct is_cheap_to_copy<OperatorID> :
public std::true_type {};
18static constexpr bool is_cheap_to_copy_v = is_cheap_to_copy<T>::value;
26 typename std::conditional_t<is_cheap_to_copy_v<T>, T,
const T&>;
The top-level namespace of probabilistic Fast Downward.
Definition command_line.h:8
typename std::conditional_t< is_cheap_to_copy_v< T >, T, const T & > param_type
Alias template defining the best way to pass a parameter of a given type.
Definition type_traits.h:25