Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
stan::math::internal::deduce_cvr< T > Struct Template Reference

Detailed Description

template<typename T>
struct stan::math::internal::deduce_cvr< T >

Helper template to deduce the correct type for tuple elements.

This template determines the type to store in a tuple when forwarding arguments.

  • If the argument type T is an rvalue reference, the resulting type is the decayed type (i.e. cv-qualified types and references are removed) so that the tuple element becomes a value.
  • If the argument type T is not an rvalue reference (typically deduced as an lvalue reference), then T&& will collapse to an lvalue reference, preserving the reference.
Template Parameters
TThe type to deduce.

Definition at line 29 of file make_holder_tuple.hpp.

#include <make_holder_tuple.hpp>

Public Types

using type = std::conditional_t< std::is_rvalue_reference_v< T >, std::decay_t< T >, T && >
 

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