diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-15 08:20:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-15 08:20:37 +0200 |
commit | 6664a24b003f3959e2efe2893628f725a5f6746f (patch) | |
tree | 9c0c9453c6cb04d51f4e969f5843e8c0648408bc /cutl/container/graph.hxx | |
parent | dac3640ed08cf18eaa6eb26605a27e6c7387b2c2 (diff) |
Add non-const versions of new_node() in graph container
Diffstat (limited to 'cutl/container/graph.hxx')
-rw-r--r-- | cutl/container/graph.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cutl/container/graph.hxx b/cutl/container/graph.hxx index f803797..9c1afe2 100644 --- a/cutl/container/graph.hxx +++ b/cutl/container/graph.hxx @@ -86,6 +86,20 @@ namespace cutl new_node (A0 const&, A1 const&, A2 const&, A3 const&, A4 const&, A5 const&, A6 const&, A7 const&, A8 const&, A9 const&); + // Non-const versions. + // + template <typename T, typename A0> + T& + new_node (A0&); + + template <typename T, typename A0, typename A1> + T& + new_node (A0&, A1&); + + template <typename T, typename A0, typename A1, typename A2> + T& + new_node (A0&, A1&, A2&); + public: template <typename T, typename L, typename R> T& |