Types#

namespace stapl
namespace types

Classes and types related to type checking.

struct FuncTypeInfo#
#include <types.h>

Type information of a function.

Public Functions

FuncTypeInfo() = default#

Default constructor.

FuncTypeInfo(const FuncTypeInfo&) = default#

Copy constructor.

FuncTypeInfo(FuncTypeInfo&&) = default#

Move constructor.

FuncTypeInfo(const std::vector<std::string> &arg_types, const std::string &return_type)#

Instantiate from argument types and return type.

Parameters:
  • arg_types – The types of arguments.

  • return_type – The return type.

FuncTypeInfo &operator=(const FuncTypeInfo&) = default#

Copy assignment operator.

Public Members

std::vector<std::string> arg_types#

The type names of arguments.

std::string return_type#

The type name of returned value.