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

Class cni_holder

include/covscript/core/cni.hpp:516–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514
515 template <typename T, typename X>
516 class cni_holder final : public cni_holder_base {
517 cni_helper<typename cov::function_parser<T>::type::common_type, typename cov::function_parser<X>::type::common_type> mCni;
518
519 public:
520 cni_holder() = delete;
521
522 cni_holder(const cni_holder &) = default;
523
524 explicit cni_holder(const T &func) : mCni(func) {}
525
526 ~cni_holder() override = default;
527
528 std::size_t argument_count() const noexcept override
529 {
530 return mCni.argument_count();
531 }
532
533 cni_holder_base *clone() override
534 {
535 return new cni_holder(*this);
536 }
537
538 any call(cs::vector &args) const override
539 {
540 return mCni.call(args);
541 }
542 };
543
544// CNI Decayed Conversion
545 template <typename _Target>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected