diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-19 11:13:31 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-19 11:13:31 +0800 |
commit | 7c758c3dc8dca5dea92b86e452b0616aadbf1de9 (patch) | |
tree | d85bca627e65234893c4e6444a2aa1c40da7d1e9 /src/common.hpp | |
parent | 0c2856b49656819260bae9e951de564e475e9b1d (diff) | |
download | mrust-7c758c3dc8dca5dea92b86e452b0616aadbf1de9.tar.gz |
HIR Lower - Add desugared while/while let
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.hpp b/src/common.hpp index 753d06a6..96cfcd96 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -28,6 +28,12 @@ template<typename T> ::std::shared_ptr<T> make_shared_ptr(T&& v) { return ::std::shared_ptr<T>(new T(mv$(v))); } +template<typename T> +::std::vector<T> make_vec1(T&& v) { + ::std::vector<T> rv; + rv.push_back( mv$(v) ); + return rv; +} enum Ordering { |