| 615 | |
| 616 | template <typename T> |
| 617 | inline Result TreeNode::getInput(const std::string& key, T& destination) const |
| 618 | { |
| 619 | auto res = getInputStamped(key, destination); |
| 620 | if(!res) |
| 621 | { |
| 622 | return nonstd::make_unexpected(res.error()); |
| 623 | } |
| 624 | return {}; |
| 625 | } |
| 626 | |
| 627 | template <typename T> |
| 628 | inline Result TreeNode::setOutput(const std::string& key, const T& value) |