Ticket #1166: boost-links-2.patch

File boost-links-2.patch, 6.9 KB (added by Daniel James, 14 years ago)

Some examples of using the 'boost:/' style links.

  • libs/functional/hash/doc/intro.qbk

    commit 50acc9ef87585c90df9cd884cc9eeddd2ce811ac
    Author: Daniel James <daniel@bah.(none)>
    Date:   Sat Feb 7 22:54:51 2009 +0000
    
        Use 'boost:' paths.
    
    diff --git a/libs/functional/hash/doc/intro.qbk b/libs/functional/hash/doc/intro.qbk
    index bba5de3..b027719 100644
    a b  
    1313    TR1]]
    1414[def __unordered__ [link unordered Boost.Unordered]]
    1515[def __intrusive__ [link intrusive.unordered_set_unordered_multiset Boost.Intrusive]]
    16 [def __multi-index__ [@../../libs/multi_index/doc/index.html
     16[def __multi-index__ [@boost:/libs/multi_index/doc/index.html
    1717    Boost Multi-Index Containers Library]]
    18 [def __multi-index-short__ [@../../libs/multi_index/doc/index.html
     18[def __multi-index-short__ [@boost:/libs/multi_index/doc/index.html
    1919    Boost.MultiIndex]]
    20 [def __bimap__ [@../../libs/bimap/index.html Boost.Bimap]]
     20[def __bimap__ [@boost:/libs/bimap/index.html Boost.Bimap]]
    2121[def __issues__
    2222    [@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1837.pdf
    2323    Library Extension Technical Report Issues List]]
  • libs/functional/hash/doc/portability.qbk

    diff --git a/libs/functional/hash/doc/portability.qbk b/libs/functional/hash/doc/portability.qbk
    index e9100ce..fabb298 100644
    a b boost namespace:  
    8888    }
    8989
    9090Full code for this example is at
    91 [@../../libs/functional/hash/examples/portable.cpp /libs/functional/hash/examples/portable.cpp].
     91[@boost:/libs/functional/hash/examples/portable.cpp /libs/functional/hash/examples/portable.cpp].
    9292
    9393[h2 Other Issues]
    9494
  • libs/functional/hash/doc/tutorial.qbk

    diff --git a/libs/functional/hash/doc/tutorial.qbk b/libs/functional/hash/doc/tutorial.qbk
    index eaf9a95..b2f79f5 100644
    a b  
    33 / Distributed under the Boost Software License, Version 1.0. (See accompanying
    44 / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ]
    55
    6 [def __multi-index-short__ [@../../libs/multi_index/doc/index.html
     6[def __multi-index-short__ [@boost:/libs/multi_index/doc/index.html
    77    Boost.MultiIndex]]
    88
    99[section:tutorial Tutorial]
    And you can now use [classref boost::hash] with book:  
    110110    assert(books.find(dandelion) == books.end());
    111111
    112112The full example can be found in:
    113 [@../../libs/functional/hash/examples/books.cpp /libs/functional/hash/examples/books.hpp]
     113[@boost:/libs/functional/hash/examples/books.cpp /libs/functional/hash/examples/books.hpp]
    114114and
    115 [@../../libs/functional/hash/examples/books.cpp /libs/functional/hash/examples/books.cpp].
     115[@boost:/libs/functional/hash/examples/books.cpp /libs/functional/hash/examples/books.cpp].
    116116
    117117[tip
    118118When writing a hash function, first look at how the equality function works.
    of point, it can be repeatedly called for any number of elements. It calls  
    170170[funcref boost::hash_value hash_value] on the supplied element, and combines it with the seed.
    171171
    172172Full code for this example is at
    173 [@../../libs/functional/hash/examples/point.cpp /libs/functional/hash/examples/point.cpp].
     173[@boost:/libs/functional/hash/examples/point.cpp /libs/functional/hash/examples/point.cpp].
    174174
    175175[note
    176176When using [funcref boost::hash_combine] the order of the
  • libs/unordered/doc/changes.qbk

    diff --git a/libs/unordered/doc/changes.qbk b/libs/unordered/doc/changes.qbk
    index 204b427..cb48dad 100644
    a b First official release.  
    4444
    4545[h2 Boost 1.38.0]
    4646
    47 * Use [@../../libs/utility/swap.html `boost::swap`].
     47* Use [@boost:/libs/utility/swap.html `boost::swap`].
    4848* [@https://svn.boost.org/trac/boost/ticket/2237 Ticket 2237]:
    4949  Document that the equality and inequality operators are undefined for two
    5050  objects if their equality predicates aren't equivalent. Thanks to Daniel
    First official release.  
    5353  Use a larger prime number list. Thanks to Thorsten Ottosen and Hervé
    5454  Brönnimann.
    5555* Use
    56   [@../../libs/type_traits/doc/html/boost_typetraits/category/alignment.html
     56  [@boost:/libs/type_traits/doc/html/boost_typetraits/category/alignment.html
    5757  aligned storage] to store the types. This changes the way the allocator is
    5858  used to construct nodes. It used to construct the node with two calls to
    5959  the allocator's `construct` method - once for the pointers and once for the
  • libs/unordered/doc/hash_equality.qbk

    diff --git a/libs/unordered/doc/hash_equality.qbk b/libs/unordered/doc/hash_equality.qbk
    index 74004b4..8fc08fb 100644
    a b but not the equality predicate. For example, if you wanted to use the  
    2323[import src_code/dictionary.cpp]
    2424[case_sensitive_dictionary_fnv]
    2525
    26 There is an [@../../libs/unordered/examples/fnv1.hpp implementation
     26There is an [@boost:/libs/unordered/examples/fnv1.hpp implementation
    2727of FNV-1] in the examples directory.
    2828
    2929If you wish to use a different equality function,
    Which you can then use in a case insensitive dictionary:  
    3838[case_insensitive_dictionary]
    3939
    4040This is a simplified version of the example at
    41 [@../../libs/unordered/examples/case_insensitive.hpp /libs/unordered/examples/case_insensitive.hpp]
     41[@boost:/libs/unordered/examples/case_insensitive.hpp /libs/unordered/examples/case_insensitive.hpp]
    4242which supports other locales and string types.
    4343
    4444[caution
  • tools/quickbook/doc/quickbook.qbk

    diff --git a/tools/quickbook/doc/quickbook.qbk b/tools/quickbook/doc/quickbook.qbk
    index 6fffa65..8af774d 100644
    a b sample application using __spirit__. What is it? What you are viewing now, this  
    8484documentation, is autogenerated by QuickBook. These files were generated from
    8585one master:
    8686
    87 [:[@../../tools/quickbook/doc/quickbook.qbk quickbook.qbk]]
     87[:[@boost:/tools/quickbook/doc/quickbook.qbk quickbook.qbk]]
    8888
    8989Originally named QuickDoc, this funky tool that never dies, evolved into a
    9090funkier tool thanks to Eric Niebler who resurrected the project making it
    The first line:  
    16621662''']
    16631663
    16641664collects specially marked-up code snippets from
    1665 [@../../tools/quickbook/test/stub.cpp stub.cpp]
     1665[@boost:/tools/quickbook/test/stub.cpp stub.cpp]
    16661666and places them in your QuickBook file as virtual templates. Each of the
    16671667specially marked-up code snippets has a name (e.g. `foo` and `bar` in the
    16681668example above). This shall be the template identifier for that particular code
    And the result is:  
    16811681
    16821682[heading Code Snippet Markup]
    16831683
    1684 Note how the code snippets in [@../../tools/quickbook/test/stub.cpp stub.cpp]
     1684Note how the code snippets in [@boost:/tools/quickbook/test/stub.cpp stub.cpp]
    16851685get marked up. We use distinguishable comments following the form:
    16861686
    16871687    //[id
    Example:  
    17641764
    17651765[class_]
    17661766
    1767 See the actual code here: [@../../tools/quickbook/test/stub.cpp]
     1767See the actual code here: [@boost:/tools/quickbook/test/stub.cpp]
    17681768
    17691769[endsect]
    17701770