diff options
author | chriseth <c@ethdev.com> | 2015-06-16 22:08:40 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-16 22:09:20 +0800 |
commit | 66a85f0229c8160ab9d1dd3d96ba248afe1cab6e (patch) | |
tree | 877940c0084f673773e7786349c7850998d7f3a4 /AssemblyItem.h | |
parent | 64a1e82b6cf6ef6483a159743827c68e7baa3a64 (diff) | |
download | dexon-solidity-66a85f0229c8160ab9d1dd3d96ba248afe1cab6e.tar dexon-solidity-66a85f0229c8160ab9d1dd3d96ba248afe1cab6e.tar.gz dexon-solidity-66a85f0229c8160ab9d1dd3d96ba248afe1cab6e.tar.bz2 dexon-solidity-66a85f0229c8160ab9d1dd3d96ba248afe1cab6e.tar.lz dexon-solidity-66a85f0229c8160ab9d1dd3d96ba248afe1cab6e.tar.xz dexon-solidity-66a85f0229c8160ab9d1dd3d96ba248afe1cab6e.tar.zst dexon-solidity-66a85f0229c8160ab9d1dd3d96ba248afe1cab6e.zip |
Some documentation and checks for vector_ref.
Diffstat (limited to 'AssemblyItem.h')
-rw-r--r-- | AssemblyItem.h | 9 |
1 files changed, 6 insertions, 3 deletions
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<AssemblyItem>; -using AssemblyItemsConstRef = vector_ref<AssemblyItem const>; 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; +} } } |