Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class template flat_set

Boost , Chapter 1. Boost.Compute , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Class template flat_set

boost::compute::flat_set

Synopsis

// In header: <boost/compute/container/flat_set.hpp>
template<typename T> 
class flat_set {
public:
  // types
  typedef T                                   key_type;              
  typedef vector< T >::value_type             value_type;            
  typedef vector< T >::size_type              size_type;             
  typedef vector< T >::difference_type        difference_type;       
  typedef vector< T >::reference              reference;             
  typedef vector< T >::const_reference        const_reference;       
  typedef vector< T >::pointer                pointer;               
  typedef vector< T >::const_pointer          const_pointer;         
  typedef vector< T >::iterator               iterator;              
  typedef vector< T >::const_iterator         const_iterator;        
  typedef vector< T >::reverse_iterator       reverse_iterator;      
  typedef vector< T >::const_reverse_iterator const_reverse_iterator;
  // construct/copy/destruct
  explicit flat_set(const context & = system::default_context());
  flat_set(const flat_set< T > &);
  flat_set< T > & operator=(const flat_set< T > &);
  ~flat_set();
  // public member functions
  iterator begin();
  const_iterator begin() const;
  const_iterator cbegin() const;
  iterator end();
  const_iterator end() const;
  const_iterator cend() const;
  reverse_iterator rbegin();
  const_reverse_iterator rbegin() const;
  const_reverse_iterator crbegin() const;
  reverse_iterator rend();
  const_reverse_iterator rend() const;
  const_reverse_iterator crend() const;
  size_type size() const;
  size_type max_size() const;
  bool empty() const;
  size_type capacity() const;
  void reserve(size_type, command_queue &);
  void reserve(size_type);
  void shrink_to_fit();
  void clear();
  std::pair< iterator, bool > insert(const value_type &, command_queue &);
  std::pair< iterator, bool > insert(const value_type &);
  iterator erase(const const_iterator &, command_queue &);
  iterator erase(const const_iterator &);
  iterator erase(const const_iterator &, const const_iterator &, 
                 command_queue &);
  iterator erase(const const_iterator &, const const_iterator &);
  size_type erase(const key_type &, command_queue &);
  size_type erase(const key_type &);
  iterator find(const key_type &, command_queue &);
  iterator find(const key_type &);
  const_iterator find(const key_type &, command_queue &) const;
  const_iterator find(const key_type &) const;
  size_type count(const key_type &, command_queue &) const;
  size_type count(const key_type &) const;
  iterator lower_bound(const key_type &, command_queue &);
  iterator lower_bound(const key_type &);
  const_iterator lower_bound(const key_type &, command_queue &) const;
  const_iterator lower_bound(const key_type &) const;
  iterator upper_bound(const key_type &, command_queue &);
  iterator upper_bound(const key_type &);
  const_iterator upper_bound(const key_type &, command_queue &) const;
  const_iterator upper_bound(const key_type &) const;
};

Description

flat_set public construct/copy/destruct

  1. <
    explicitflat_set(constcontext&context=system::default_context());
    >
  2. <
    flat_set(constflat_set<T>&other);
    >
  3. <
    flat_set<T>&operator=(constflat_set<T>&other);
    >
  4. <
    ~flat_set();
    >

flat_set public member functions

  1. <
    iteratorbegin();
    >
  2. <
    const_iteratorbegin()const;
    >
  3. <
    const_iteratorcbegin()const;
    >
  4. <
    iteratorend();
    >
  5. <
    const_iteratorend()const;
    >
  6. <
    const_iteratorcend()const;
    >
  7. <
    reverse_iteratorrbegin();
    >
  8. <
    const_reverse_iteratorrbegin()const;
    >
  9. <
    const_reverse_iteratorcrbegin()const;
    >
  10. <
    reverse_iteratorrend();
    >
  11. <
    const_reverse_iteratorrend()const;
    >
  12. <
    const_reverse_iteratorcrend()const;
    >
  13. <
    size_typesize()const;
    >
  14. <
    size_typemax_size()const;
    >
  15. <
    boolempty()const;
    >
  16. <
    size_typecapacity()const;
    >
  17. <
    voidreserve(size_typesize,command_queue&queue);
    >
  18. <
    voidreserve(size_typesize);
    >
  19. <
    voidshrink_to_fit();
    >
  20. <
    voidclear();
    >
  21. <
    std::pair<iterator,bool>
    insert(constvalue_type&value,command_queue&queue);
    >
  22. <
    std::pair<iterator,bool>insert(constvalue_type&value);
    >
  23. <
    iteratorerase(constconst_iterator&position,command_queue&queue);
    >
  24. <
    iteratorerase(constconst_iterator&position);
    >
  25. <
    iteratorerase(constconst_iterator&first,constconst_iterator&last,
                  command_queue&queue);
    >
  26. <
    iteratorerase(constconst_iterator&first,constconst_iterator&last);
    >
  27. <
    size_typeerase(constkey_type&value,command_queue&queue);
    >
  28. <
    size_typeerase(constkey_type&value);
    >
  29. <
    iteratorfind(constkey_type&value,command_queue&queue);
    >
  30. <
    iteratorfind(constkey_type&value);
    >
  31. <
    const_iteratorfind(constkey_type&value,command_queue&queue)const;
    >
  32. <
    const_iteratorfind(constkey_type&value)const;
    >
  33. <
    size_typecount(constkey_type&value,command_queue&queue)const;
    >
  34. <
    size_typecount(constkey_type&value)const;
    >
  35. <
    iteratorlower_bound(constkey_type&value,command_queue&queue);
    >
  36. <
    iteratorlower_bound(constkey_type&value);
    >
  37. <
    const_iterator
    lower_bound(constkey_type&value,command_queue&queue)const;
    >
  38. <
    const_iteratorlower_bound(constkey_type&value)const;
    >
  39. <
    iteratorupper_bound(constkey_type&value,command_queue&queue);
    >
  40. <
    iteratorupper_bound(constkey_type&value);
    >
  41. <
    const_iterator
    upper_bound(constkey_type&value,command_queue&queue)const;
    >
  42. <
    const_iteratorupper_bound(constkey_type&value)const;
    >

PrevUpHomeNext

Статья Class template flat_set раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 05:21:58/0.0048491954803467/0