home | login | register | DMCA | contacts | help | donate |      

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Э Ю Я


my bookshelf | genres | recommend | rating of books | rating of authors | reviews | new | форум | collections | читалки | авторам | add
fantasy
space fantasy
fantasy is horrors
heroic
prose
  military
  child
  russian
detective
  action
  child
  ironical
  historical
  political
western
adventure
adventure (child)
child's stories
love
religion
antique
Scientific literature
biography
business
home pets
animals
art
history
computers
linguistics
mathematics
religion
home_garden
sport
technique
publicism
philosophy
chemistry
close

Loading...


Expression semantics

Name Expression Semantics Postcondition
Default constructor X() X a; Creates an empty container, using key_compare() as the comparison object. The size of the container is 0.
Constructor with compare X(c) X a(c); Creates an empty container, using c as the comparison object. The size of the container is 0. key_comp() returns a function object that is equivalent to c.
Key comparison a.key_comp() Returns the key comparison object used by a.
Value comparison a::value_compare() Returns the value comparison object used by a. If t1 and t2 are objects of type value_type, and k1 and k2 are the keys associated with them, then a.value_comp()(t1, t2) is equivalent to a.key_comp()(k1, k2).
Lower bound a.lower_bound(k) Returns an iterator pointing to the first element whose key is not less than k. Returns a.end() if no such element exists. If a contains any elements that have the same key as k, then the return value of lower_bound points to the first such element.
Upper bound a.upper_bound(k) Returns an iterator pointing to the first element whose key is greater than k. Returns a.end() if no such element exists. If a contains any elements that have the same key as k, then the return value of upper_bound points to one past the last such element.
Equal range a.equal_range(k) Returns a pair whose first element is a.lower_bound(k) and whose second element is a.upper_bound(k).


Valid expressions | Standard Template Library Programmer`s Guide | Complexity guarantees







Loading...