alpaqa no-casadi-dep
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
possible-alias.hpp File Reference
#include <type_traits>
+ Include dependency graph for possible-alias.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  alpaqa
 
namespace  alpaqa::util
 
namespace  alpaqa::util::detail
 

Typedefs

template<class NewAlias , class... PossibleAliases>
using possible_alias_t = std::conditional_t< detail::any_is_same< NewAlias, PossibleAliases... >(), detail::dummy< NewAlias, PossibleAliases... >, NewAlias >
 If NewAlias is not the same type as any of PossibleAliases, the result is NewAlias.
 

Functions

template<class A , class... Bs>
constexpr bool any_is_same ()
 Check if A is equal to any of Bs.