From 66a85f0229c8160ab9d1dd3d96ba248afe1cab6e Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 16 Jun 2015 16:08:40 +0200 Subject: Some documentation and checks for vector_ref. --- AssemblyItem.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'AssemblyItem.h') diff --git a/AssemblyItem.h b/AssemblyItem.h index 9eca0a7d..3fa9bb20 100644 --- a/AssemblyItem.h +++ b/AssemblyItem.h @@ -98,11 +98,14 @@ private: }; using AssemblyItems = std::vector; -using AssemblyItemsConstRef = vector_ref; std::ostream& operator<<(std::ostream& _out, AssemblyItem const& _item); -std::ostream& operator<<(std::ostream& _out, AssemblyItemsConstRef _i); -inline std::ostream& operator<<(std::ostream& _out, AssemblyItems const& _i) { return operator<<(_out, AssemblyItemsConstRef(&_i)); } +inline std::ostream& operator<<(std::ostream& _out, AssemblyItems const& _items) +{ + for (AssemblyItem const& item: _items) + _out << item; + return _out; +} } } -- cgit