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...


Example

crope r(1000000, 'x'); // crope is rope. wrope is rope

// Builds a rope containing a million 'x's.

// Takes much less than a MB, since the

// different pieces are shared.

crope r2 = r + "abc" + r; // concatenation; takes on the order of 100s

// of machine instructions; fast

crope r3 = r2.substr(1000000, 3);// yields "abc"; fast.

crope r4 = r2.substr(1000000, 1000000); // also fast.

reverse(r2.mutable_begin(), r2.mutable_end()); // correct, but slow; may take a

// minute or more.


Definition | Standard Template Library Programmer`s Guide | Template parameters







Loading...