Automatic Differentiation
 
Loading...
Searching...
No Matches
std_iterator_traits.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_STD_ITERATOR_TRAITS_HPP
2#define STAN_MATH_REV_CORE_STD_ITERATOR_TRAITS_HPP
3
6#include <iterator>
7
8namespace std {
13template <typename Iter>
14struct iterator_traits<stan::math::var_value<Iter>> {
18 typedef random_access_iterator_tag iterator_category;
19
23 typedef ptrdiff_t difference_type;
24
29
34
39};
40} // namespace std
41
42#endif
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
STL namespace.
stan::math::var_value< Iter > value_type
Type for value of pointer to values.
stan::math::var_value< Iter > & reference
Type of reference to variables.
stan::math::var_value< Iter > * pointer
Type of pointer to variables.
random_access_iterator_tag iterator_category
Iterator category for traits.
ptrdiff_t difference_type
Type for difference between pointers.