diff options
author | 2013-08-18 16:55:01 -0700 | |
---|---|---|
committer | 2013-08-19 18:06:24 -0700 | |
commit | e849beabbab31c83ac57693cb0a7ac1e58f8cfd5 (patch) | |
tree | fa8872516ac378bd32ef3be5844100bc64cf4c1b /io.cpp | |
parent | 2979d3bf169f51fb2ba218897994745754f830f9 (diff) |
Initial work towards various IO cleanups with an eye to fixing https://github.com/fish-shell/fish-shell/issues/110
Diffstat (limited to 'io.cpp')
-rw-r--r-- | io.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -202,6 +202,12 @@ void io_chain_t::push_back(const shared_ptr<io_data_t> &element) std::vector<shared_ptr<io_data_t> >::push_back(element); } +void io_chain_t::push_front(const shared_ptr<io_data_t> &element) +{ + assert(element.get() != NULL); + this->insert(this->begin(), element); +} + void io_remove(io_chain_t &list, const shared_ptr<const io_data_t> &element) { list.remove(element); |