3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>So How are Policies Used Anyway?</title>
5 <link rel="stylesheet" href="../../math.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../index.html" title="Math Toolkit 2.11.0">
8 <link rel="up" href="../pol_tutorial.html" title="Policy Tutorial">
9 <link rel="prev" href="policy_tut_defaults.html" title="Policies Have Sensible Defaults">
10 <link rel="next" href="changing_policy_defaults.html" title="Changing the Policy Defaults">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="policy_tut_defaults.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../pol_tutorial.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="changing_policy_defaults.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h3 class="title">
27 <a name="math_toolkit.pol_tutorial.policy_usage"></a><a class="link" href="policy_usage.html" title="So How are Policies Used Anyway?">So How are Policies
29 </h3></div></div></div>
31 The details follow later, but basically policies can be set by either:
33 <div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
35 Defining some macros that change the default behaviour: <span class="bold"><strong>this
36 is the recommended method for setting installation-wide policies</strong></span>.
39 By instantiating a statistical distribution object with an explicit policy:
40 this is mainly reserved for ad hoc policy changes.
43 By passing a policy to a special function as an optional final argument:
44 this is mainly reserved for ad hoc policy changes.
47 By using some helper macros to define a set of functions or distributions
48 in the current namespace that use a specific policy: <span class="bold"><strong>this
49 is the recommended method for setting policies on a project- or translation-unit-wide
50 basis</strong></span>.
54 The following sections introduce these methods in more detail.
57 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
58 <td align="left"></td>
59 <td align="right"><div class="copyright-footer">Copyright © 2006-2019 Nikhar
60 Agrawal, Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos,
61 Hubert Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Matthew Pulver, Johan
62 Råde, Gautam Sewani, Benjamin Sobotta, Nicholas Thompson, Thijs van den Berg,
63 Daryle Walker and Xiaogang Zhang<p>
64 Distributed under the Boost Software License, Version 1.0. (See accompanying
65 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
70 <div class="spirit-nav">
71 <a accesskey="p" href="policy_tut_defaults.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../pol_tutorial.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="changing_policy_defaults.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>