commit | 49e321a14c71149f514b61163fe976e7ae4eb1eb | [log] [tgz] |
---|---|---|
author | Jeff Thompson <jefft0@gmail.com> | Fri Oct 04 17:35:59 2013 -0700 |
committer | Jeff Thompson <jefft0@gmail.com> | Fri Oct 04 17:35:59 2013 -0700 |
tree | a4a9c0ac4808a943bb8b4cb318e9dd7f1deb3117 | |
parent | 9cf9dfb9aef106c1de4cd32072e6a5b5c041e5b8 [diff] [blame] |
Name: added operator << for ostream.
diff --git a/ndn-cpp/name.hpp b/ndn-cpp/name.hpp index 904e74d..0fe7284 100644 --- a/ndn-cpp/name.hpp +++ b/ndn-cpp/name.hpp
@@ -511,6 +511,13 @@ std::vector<Component> components_; }; +inline std::ostream& +operator << (std::ostream& os, const Name& name) +{ + os << name.toUri(); + return os; +} + } #endif