1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Header <boost/test/utils/named_params.hpp></title> 5<link rel="stylesheet" href="../../../../boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../../index.html" title="Boost.Test"> 8<link rel="up" href="../../../../boost_test/reference.html" title="Reference"> 9<link rel="prev" href="../../../../boost/unit_test/is_forward_iterable.html" title="Struct template is_forward_iterable"> 10<link rel="next" href="../../../../boost/nfp/has_param.html" title="Struct template has_param"> 11</head> 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> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="../../../../boost/unit_test/is_forward_iterable.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../boost_test/reference.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="../../../../boost/nfp/has_param.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h4 class="title"> 27<a name="header.boost.test.utils.named_params_hpp"></a>Header <<a href="../../../../../../../../boost/test/utils/named_params.hpp" target="_top">boost/test/utils/named_params.hpp</a>></h4></div></div></div> 28<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> 29 <span class="keyword">namespace</span> <span class="identifier">nfp</span> <span class="special">{</span> 30 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">></span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special">;</span> 31 32 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">></span> 33 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/has_para_idm45267286130400.html" title="Struct template has_param<named_parameter_combine< NP, Rest >, Keyword>">has_param</a><span class="special"><</span><span class="identifier">named_parameter_combine</span><span class="special"><</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Rest</span> <span class="special">></span><span class="special">,</span> <span class="identifier">Keyword</span><span class="special">></span><span class="special">;</span> 34 35 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">></span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/is_named_param_pack.html" title="Struct template is_named_param_pack">is_named_param_pack</a><span class="special">;</span> 36 37 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">typename</span> RefType<span class="special">></span> 38 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/is_named_idm45267286124256.html" title="Struct template is_named_param_pack<named_parameter< T, unique_id, RefType >>">is_named_param_pack</a><span class="special"><</span><span class="identifier">named_parameter</span><span class="special"><</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">unique_id</span><span class="special">,</span> <span class="identifier">RefType</span> <span class="special">></span><span class="special">></span><span class="special">;</span> 39 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest<span class="special">></span> 40 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/is_named_idm45267286120336.html" title="Struct template is_named_param_pack<named_parameter_combine< NP, Rest >>">is_named_param_pack</a><span class="special"><</span><span class="identifier">named_parameter_combine</span><span class="special"><</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Rest</span> <span class="special">></span><span class="special">></span><span class="special">;</span> 41 42 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">bool</span> required <span class="special">=</span> <span class="keyword">false</span><span class="special">></span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/keyword.html" title="Struct template keyword">keyword</a><span class="special">;</span> 43 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">typename</span> RefType<span class="special">></span> 44 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/named_parameter.html" title="Struct template named_parameter">named_parameter</a><span class="special">;</span> 45 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest <span class="special">=</span> <a class="link" href="../../../../boost/nfp/nil.html" title="Struct nil">nil</a><span class="special">></span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/named_parameter_combine.html" title="Struct template named_parameter_combine">named_parameter_combine</a><span class="special">;</span> 46 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/nil.html" title="Struct nil">nil</a><span class="special">;</span> 47 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">,</span> <span class="keyword">typename</span> DefaultType <span class="special">=</span> <span class="keyword">void</span><span class="special">></span> 48 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/param_type.html" title="Struct template param_type">param_type</a><span class="special">;</span> 49 50 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> NP<span class="special">,</span> <span class="keyword">typename</span> Rest<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">,</span> 51 <span class="keyword">typename</span> DefaultType<span class="special">></span> 52 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/param_ty_idm45267286028464.html" title="Struct template param_type<named_parameter_combine< NP, Rest >, Keyword, DefaultType>">param_type</a><span class="special"><</span><span class="identifier">named_parameter_combine</span><span class="special"><</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Rest</span> <span class="special">></span><span class="special">,</span> <span class="identifier">Keyword</span><span class="special">,</span> <span class="identifier">DefaultType</span><span class="special">></span><span class="special">;</span> 53 54 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">bool</span> required<span class="special">></span> 55 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/typed_keyword.html" title="Struct template typed_keyword">typed_keyword</a><span class="special">;</span> 56 57 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> unique_id<span class="special">,</span> <span class="keyword">bool</span> required<span class="special">></span> 58 <span class="keyword">struct</span> <a class="link" href="../../../../boost/nfp/typed_ke_idm45267286015104.html" title="Struct template typed_keyword<bool, unique_id, required>">typed_keyword</a><span class="special"><</span><span class="keyword">bool</span><span class="special">,</span> <span class="identifier">unique_id</span><span class="special">,</span> <span class="identifier">required</span><span class="special">></span><span class="special">;</span> 59 60 <span class="keyword">typedef</span> <a class="link" href="../../../../boost/nfp/named_parameter.html" title="Struct template named_parameter">named_parameter</a><span class="special"><</span> <span class="keyword">char</span><span class="special">,</span> <span class="keyword">struct</span> <span class="identifier">no_params_type_t</span><span class="special">,</span> <span class="keyword">char</span> <span class="special">></span> <a name="boost.nfp.no_params_type"></a><span class="identifier">no_params_type</span><span class="special">;</span> 61 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">></span> 62 <span class="identifier">enable_if_c</span><span class="special"><</span><span class="special">!</span><a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special"><</span> <span class="identifier">Params</span><span class="special">,</span> <span class="identifier">Keyword</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> 63 <a name="boost.nfp.opt_assi_idm45267285985536"></a><span class="identifier">opt_assign</span><span class="special">(</span><span class="identifier">T</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">,</span> <span class="identifier">Keyword</span><span class="special">)</span><span class="special">;</span> 64 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">></span> 65 <span class="identifier">enable_if_c</span><span class="special"><</span> <a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special"><</span> <span class="identifier">Params</span><span class="special">,</span> <span class="identifier">Keyword</span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="keyword">void</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> 66 <a name="boost.nfp.opt_assi_idm45267285980176"></a><span class="identifier">opt_assign</span><span class="special">(</span><span class="identifier">T</span> <span class="special">&</span> target<span class="special">,</span> <span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&</span> p<span class="special">,</span> <span class="identifier">Keyword</span> k<span class="special">)</span><span class="special">;</span> 67 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> Keyword<span class="special">></span> 68 <span class="identifier">T</span> <a name="boost.nfp.opt_get"></a><span class="identifier">opt_get</span><span class="special">(</span><span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&</span> p<span class="special">,</span> <span class="identifier">Keyword</span> k<span class="special">,</span> <span class="identifier">T</span> default_val<span class="special">)</span><span class="special">;</span> 69 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> NP<span class="special">></span> 70 <span class="identifier">enable_if_c</span><span class="special"><</span><span class="special">!</span><a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special"><</span> <span class="identifier">Params</span><span class="special">,</span> <a class="link" href="../../../../boost/nfp/keyword.html" title="Struct template keyword">keyword</a><span class="special"><</span> <span class="keyword">typename</span> <span class="identifier">NP</span><span class="special">::</span><span class="identifier">id</span> <span class="special">></span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <a class="link" href="../../../../boost/nfp/named_parameter_combine.html" title="Struct template named_parameter_combine">named_parameter_combine</a><span class="special"><</span> <span class="identifier">NP</span><span class="special">,</span> <span class="identifier">Params</span> <span class="special">></span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> 71 <a name="boost.nfp.opt_appe_idm45267285969936"></a><span class="identifier">opt_append</span><span class="special">(</span><span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&</span> params<span class="special">,</span> <span class="identifier">NP</span> <span class="keyword">const</span> <span class="special">&</span> np<span class="special">)</span><span class="special">;</span> 72 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Params<span class="special">,</span> <span class="keyword">typename</span> NP<span class="special">></span> 73 <span class="identifier">enable_if_c</span><span class="special"><</span> <a class="link" href="../../../../boost/nfp/has_param.html" title="Struct template has_param">has_param</a><span class="special"><</span> <span class="identifier">Params</span><span class="special">,</span> <a class="link" href="../../../../boost/nfp/keyword.html" title="Struct template keyword">keyword</a><span class="special"><</span> <span class="keyword">typename</span> <span class="identifier">NP</span><span class="special">::</span><span class="identifier">id</span> <span class="special">></span> <span class="special">></span><span class="special">::</span><span class="identifier">value</span><span class="special">,</span> <span class="identifier">Params</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> 74 <a name="boost.nfp.opt_appe_idm45267285964944"></a><span class="identifier">opt_append</span><span class="special">(</span><span class="identifier">Params</span> <span class="keyword">const</span> <span class="special">&</span> params<span class="special">,</span> <span class="identifier">NP</span> <span class="keyword">const</span> <span class="special">&</span><span class="special">)</span><span class="special">;</span> 75 <span class="special">}</span> 76<span class="special">}</span></pre> 77</div> 78<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 79<td align="left"></td> 80<td align="right"><div class="copyright-footer">Copyright © 2001-2020 Boost.Test contributors<p> 81 Distributed under the Boost Software License, Version 1.0. (See accompanying 82 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>) 83 </p> 84</div></td> 85</tr></table> 86<hr> 87<div class="spirit-nav"> 88<a accesskey="p" href="../../../../boost/unit_test/is_forward_iterable.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../boost_test/reference.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="../../../../boost/nfp/has_param.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a> 89</div> 90</body> 91</html> 92