1 #ifndef STAN_LANG_AST_FUN_RETURNS_TYPE_DEF_HPP 2 #define STAN_LANG_AST_FUN_RETURNS_TYPE_DEF_HPP 8 #include <boost/variant/apply_visitor.hpp> 15 std::ostream& error_msgs) {
19 return boost::apply_visitor(vis, statement.
statement_);
Structure to wrap the variant type of statements.
Probability, optimization and sampling library.
statement_t statement_
The statement variant type held by this wrapper.
Structure of the type of an expression, which consists of a base type and a number of dimensions...
Visitor for reporting an error message if the statement is not a return statement with a type specifi...
bool returns_type(const expr_type &return_type, const statement &statement, std::ostream &error_msgs)
Return true if the specified statement is a return statement returning an expression of the specified...
const int VOID_T
Void type.