Automatic Differentiation
 
Loading...
Searching...
No Matches
is_container.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_META_IS_CONTAINER_HPP
2#define STAN_MATH_PRIM_META_IS_CONTAINER_HPP
3
12
13#include <type_traits>
14
15namespace stan {
16
21template <typename Container>
24
32template <typename T>
34
37template <typename T>
39
42template <typename... Types>
45
48template <typename... Types>
51
54template <typename... Types>
69template <template <class...> class TypeCheck, class... Check>
72 TypeCheck, Check...>>;
73
79template <template <class...> class TypeCheck, class... Check>
82 TypeCheck, Check...>>;
85} // namespace stan
86
87#endif
require_all_t< is_container< std::decay_t< Types > >... > require_all_container_t
Require all of the types satisfy is_container.
require_not_t< container_type_check_base< is_container, scalar_type_t, TypeCheck, Check... > > require_not_container_st
Require type does not satisfy is_container.
require_not_t< is_container< std::decay_t< T > > > require_not_container_t
Require type does not satisfy is_container.
require_any_t< is_container< std::decay_t< Types > >... > require_any_container_t
Require any of the types satisfy is_container.
require_t< container_type_check_base< is_container, scalar_type_t, TypeCheck, Check... > > require_container_st
Require type satisfies is_container.
require_t< is_container< std::decay_t< T > > > require_container_t
Require type satisfies is_container.
require_all_not_t< is_container< std::decay_t< Types > >... > require_all_not_container_t
Require none of the types satisfy is_container.
std::integral_constant< bool, B > bool_constant
Alias for structs used for wraps a static constant of bool.
std::enable_if_t<!Check::value > require_not_t
If condition is false, template is disabled.
std::enable_if_t< math::disjunction< Checks... >::value > require_any_t
If any condition is true, template is enabled.
bool_constant< math::disjunction< is_eigen< Container >, is_std_vector< Container > >::value > is_container
Deduces whether type is eigen matrix or standard vector.
std::enable_if_t<!math::disjunction< Checks... >::value > require_all_not_t
If all conditions are false, template is enabled.
bool_constant< math::conjunction< ContainerCheck< std::decay_t< Check > >..., TypeCheck< ValueCheck< Check > >... >::value > container_type_check_base
Used as the base for checking whether a type is a container with an underlying scalar type.
typename scalar_type< T >::type scalar_type_t
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
std::enable_if_t< math::conjunction< Checks... >::value > require_all_t
If all conditions are true, template is enabled Returns a type void if all conditions are true and ot...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Base implementation for checking if type is std vector.
Definition is_vector.hpp:19
Extends std::false_type when instantiated with zero or more template parameters, all of which extend ...