MCPcopy Create free account
hub / github.com/covscript/covscript / pow

Function pow

include/covscript/impl/type_ext.hpp:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63 template <typename T>
64 static inline var pow(const T &lhs, const var &rhs)
65 {
66 throw lang_error("Type " + cs_impl::cxx_demangle(cs_impl::get_name_of_type<T>()) + " does not support ^ operator.");
67 }
68
69 template <typename T>
70 static inline var minus(const T &val)

Callers 3

powMethod · 0.70
operator^Function · 0.50
truncateMethod · 0.50

Calls 2

lang_errorClass · 0.85
cxx_demangleFunction · 0.85

Tested by

no test coverage detected