Пример #1
0
 void reserve( std::size_t size)
 { base_.reserve( size); }
Пример #2
0
 bool empty() const
 { return base_.empty(); }
Пример #3
0
 std::pair< const_iterator, const_iterator > equal_range( key_type const& k) const
 {
     return std::equal_range(
             base_.begin(), base_.end(),
             k, comparator() );
 }
Пример #4
0
 std::size_t capacity() const
 { return base_.capacity(); }
Пример #5
0
 void erase( iterator const& i, iterator const& e)
 { base_.erase( i, e); }
Пример #6
0
 decltype(auto) as_stack(std::false_type) const {
     base_t::push();
     return stack::pop<T>(lua_state());
 }
Пример #7
0
 iterator end()
 { return base_.end(); }
Пример #8
0
 void push_back( fiber_base::ptr_t const& f)
 {
     BOOST_ASSERT( f);
     base_.push_back( f);
 }
Пример #9
0
 string_refs(StringSequence const & names)
   : base_t({})
   , m_storage(names.begin(), names.end())
 {
   static_cast<base_t&>(*this) = base_t(m_storage);
 }
Пример #10
0
 const_iterator begin() const
 { return base_.begin(); }
Пример #11
0
 bracket(output& out, const char* = nullptr) : out_(out)
 { out_("(").compact(); }
Пример #12
0
 bool is_stack(std::false_type) const {
     auto pp = stack::push_pop(*this);
     return stack::check<T>(lua_state(), -1, no_panic);
 }
Пример #13
0
 bool is_stack(std::true_type) const {
     return stack::check<T>(lua_state(), base_t::stack_index(), no_panic);
 }
Пример #14
0
 size_type size() const
 { return base_.size(); }
Пример #15
0
 const_iterator end() const
 { return base_.end(); }
Пример #16
0
 void sort()
 { std::stable_sort( base_.begin(), base_.end(), comparator() ); }
Пример #17
0
 iterator lower_bound( key_type const& k)
 {
     return std::lower_bound(
             base_.begin(), base_.end(),
             k, comparator() );
 }
Пример #18
0
 void erase( iterator const& i)
 { base_.erase( i); }
Пример #19
0
 const_iterator upper_bound( key_type const& k) const
 {
     return std::upper_bound(
             base_.begin(), base_.end(),
             k, comparator() );
 }
Пример #20
0
 void swap( container & other)
 { base_.swap( other); }
Пример #21
0
 decltype(auto) as_stack(std::true_type) const {
     return stack::get<T>(lua_state(), base_t::stack_index());
 }