Advertisement
Vultraz

Untitled

Apr 20th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. template<typename... T>
  2. int context_manager::add_map_context(const T&... args)
  3. {
  4.     map_contexts_.emplace_back(new map_context(args...));
  5.     return map_contexts_.size() - 1;
  6. }
  7.  
  8. int context_manager::add_map_context(context_ptr&& mc)
  9. {
  10.     map_contexts_.push_back(mc);
  11.     return map_contexts_.size() - 1;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement