Template Function sequant::canonical_children(TreeNode const&&)

Function Documentation

template<typename TreeNode>
std::pair<TreeNode const&, TreeNode const&> sequant::canonical_children(TreeNode const &&n) = delete

The result aliases n's children, so a temporary would dangle. (A TreeNode const&& parameter is not a forwarding reference, so this overload takes rvalues only and leaves lvalue calls to the one above.)