Ticket #5955: bimap-docs.patch

File bimap-docs.patch, 4.2 KB (added by anonymous, 10 years ago)

Patch for these typos and a few others as well

  • libs/bimap/doc/quick_tutorial.qbk

     
    8080
    8181[import ../example/step_by_step.cpp]
    8282
    83 A convinience header is avaiable in the boost directory:
     83A convenience header is available in the boost directory:
    8484
    8585    #include <boost/bimap.hpp>
    8686
     
    123123
    124124    bm.left.find(1)->second = "1"; // Compilation error
    125125
    126 If you insert `(1,"one")` and `(1,"1")` in a `std::map<int,std::string>` the second insertion will have no effect. In a `bimap<X,Y>` both keys have to remain unique. The insertion may fail in other situtions too. Lets see an example
     126If you insert `(1,"one")` and `(1,"1")` in a `std::map<int,std::string>` the second insertion will have no effect. In a `bimap<X,Y>` both keys have to remain unique. The insertion may fail in other situations too. Lets see an example
    127127
    128128    bm.clear();
    129129
  • libs/bimap/doc/history.qbk

     
    5151[
    5252Once in Boost, the library switched to the now familiar name
    5353"Boost.MultiIndex". Late in 2004, it formally became a member of Boost.
    54 Joaquin continued to enchance the library and added new features such as
     54Joaquin continued to enhance the library and added new features such as
    5555composite keys and random-access indices.
    5656]]
    5757
     
    7171
    7272[[2007 - Boost.Bimap]
    7373[
    74 The formal review took place at the beggining of the year and Boost.Bimap
     74The formal review took place at the beginning of the year and Boost.Bimap
    7575was accepted in Boost.
    7676]]
    7777]
  • libs/bimap/doc/compiler_specifics.qbk

     
    4141
    4242[h2 VS 7.1]
    4343
    44 If a .cpp file uses more than four differents bimaps the compiler will run
     44If a .cpp file uses more than four different bimaps the compiler will run
    4545out of symbols and issue an internal compiler error. The official solution
    4646in msdn is to split the .cpp in several files or upgrade your compiler.
    4747
  • libs/bimap/doc/tutorial.qbk

     
    246246[heading Countries Populations]
    247247
    248248We want to store countries populations.
    249 The requeriments are:
     249The requirements are:
    250250
    251 # Get a list of countries in decresing order of their populations.
    252 # Given a countrie, get their population.
     251# Get a list of countries in decreasing order of their populations.
     252# Given a country, get their population.
    253253
    254 Lets create the appropiate bimap.
     254Lets create the appropriate bimap.
    255255
    256256    typedef bimap<
    257257
     
    768768[code_user_defined_names_untagged_version]
    769769
    770770In Boost.Bimap there is a better way to document the code and
    771 in the meantime helping you to write more mantainable and readable code.
     771in the meantime helping you to write more maintainable and readable code.
    772772You can tag the two collections of the bimap so they can be
    773773accessed by more descriptive names.
    774774
     
    954954Additionally, the type of this two parameters can be tagged to specify
    955955user defined names instead of the usual `member_at::-Side-` tags.
    956956
    957 The possibles way to use the first parameter are:
     957The possible way to use the first parameter are:
    958958
    959959    bimap< Type, R >
    960960
  • libs/bimap/doc/bimap_and_boost.qbk

     
    3636types can be used as key. There is a library in Boost that already
    3737allows the creation of this kind of container: Boost.MultiIndex. It
    3838offers great flexibility and lets you construct almost any container
    39 that you could dream of. The framework is very clean. You migh want to
     39that you could dream of. The framework is very clean. You might want to
    4040read this library's tutorial to learn about the power that has been
    4141achieved.
    4242