MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / const_var_impl

Function const_var_impl

include/chaiscript/dispatchkit/boxed_value.hpp:398–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396 /// \sa Boxed_Value::is_const
397 template<typename T>
398 Boxed_Value const_var_impl(const T &t)
399 {
400 return Boxed_Value(std::make_shared<typename std::add_const<T>::type >(t));
401 }
402
403 /// \brief Takes a pointer to a value, adds const to the pointed to type and returns an immutable Boxed_Value.
404 /// Does not copy the pointed to value.

Callers 1

const_varFunction · 0.85

Calls 2

Boxed_ValueClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected