]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/qvm/doc/is_scalar.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / qvm / doc / is_scalar.html
1 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
2 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
3 <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
4 <head>
5 <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
6 <title>is_scalar</title>
7 <link href='reno.css' type='text/css' rel='stylesheet'/>
8 </head>
9 <body>
10 <div class="body-0">
11 <div class="body-1">
12 <div class="body-2">
13 <div>
14 <h1>QVM: Quaternions, Vectors, Matrices</h1>
15 </div>
16 <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
17 <!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
18 <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
19 <div class="RenoIncludeDIV"><div class="RenoAutoDIV"><h3>is_scalar</h3>
20 </div>
21 <div class="RenoIncludeDIV"><p><span class="RenoEscape">&#35;<!--<wiki>`&#35;</wiki>--></span>include &lt;<span class="RenoLink"><a href="boost_qvm_scalar_traits_hpp.html">boost/qvm/scalar_traits.hpp</a></span>&gt;</p>
22 <pre>namespace
23 boost
24 {
25 namespace
26 <span class="RenoLink"><a href="qvm.html">qvm</a></span>
27 {
28 <span class="RenoIncludeSPAN"> template &lt;class T&gt;
29 struct <span class="RenoLink">is_scalar</span>
30 {
31 bool const value=false;
32 };
33 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;char&gt; { static bool const value=true; };
34 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;signed char&gt; { static bool const value=true; };
35 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;unsigned char&gt; { static bool const value=true; };
36 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;signed short&gt; { static bool const value=true; };
37 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;unsigned short&gt; { static bool const value=true; };
38 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;signed int&gt; { static bool const value=true; };
39 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;unsigned int&gt; { static bool const value=true; };
40 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;signed long&gt; { static bool const value=true; };
41 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;unsigned long&gt; { static bool const value=true; };
42 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;float&gt; { static bool const value=true; };
43 template &lt;&gt; struct <span class="RenoLink">is_scalar</span>&lt;double&gt; { static bool const value=true; };</span>
44 }
45 }</pre>
46 </div><p>This type template defines a compile-time boolean constant value which can be used to determine whether a type <i>T</i> is a valid scalar type. It must be specialized together with the <i><span class="RenoLink"><a href="scalar_traits.html">scalar_traits</a></span></i> template in order to introduce a user scalar type to Boost QVM. Such types must satisfy the <span class="RenoLink"><a href="scalar_requirements.html">scalar requirements</a></span>.</p>
47 </div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div>
48 See also: <span class="RenoPageList"><a href="inverse_mat_.html">inverse(mat)</a>&nbsp;| <a href="operator_times_mat_scalar_.html">operator*(mat,scalar)</a>&nbsp;| <a href="operator_times_vec_scalar_.html">operator*(vec,scalar)</a>&nbsp;| <a href="operator_mul_eq_mat_scalar_.html">operator*=(mat,scalar)</a>&nbsp;| <a href="operator_mul_eq_vec_scalar_.html">operator*=(vec,scalar)</a>&nbsp;| <a href="operator_over_mat_scalar_.html">operator/(mat,scalar)</a>&nbsp;| <a href="operator_over_vec_scalar_.html">operator/(vec,scalar)</a>&nbsp;| <a href="operator_div_eq_mat_scalar_.html">operator/=(mat,scalar)</a>&nbsp;| <a href="operator_div_eq_vec_scalar_.html">operator/=(vec,scalar)</a>&nbsp;| <a href="slerp.html">slerp</a></span>
49 </div>
50 <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
51 <!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
52 <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
53 <div id="footer">
54 <p>
55 <a class="logo" href="http://jigsaw.w3.org/css-validator/check/referer"><img class="logo_pic" src="valid-css.png" alt="Valid CSS" height="31" width="88"/></a>
56 <a class="logo" href="http://validator.w3.org/check?uri=referer"><img class="logo_pic" src="valid-xhtml.png" alt="Valid XHTML 1.0" height="31" width="88"/></a>
57 <small>Copyright (c) 2008-2016 by Emil Dotchevski and Reverge Studios, Inc.<br/>
58 Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small>
59 </p>
60 </div>
61 </div>
62 </div>
63 </div>
64 </body>
65 </html>