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'
>
5 <meta http-equiv='Content-Type' content='text/html; charset=utf-
8'
/>
6 <title>deduce_quat
</title>
7 <link href='reno.css' type='text/css' rel='stylesheet'
/>
14 <h1>QVM: Quaternions, Vectors, Matrices
</h1>
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>deduce_quat
</h3>
21 <div class=
"RenoIncludeDIV"><p><span class=
"RenoEscape">#<!--<wiki>`#</wiki>--></span>include
<<span class=
"RenoLink"><a href=
"boost_qvm_deduce_quat_hpp.html">boost/qvm/deduce_quat.hpp
</a></span>></p>
24 namespace
<span class=
"RenoLink"><a href=
"qvm.html">qvm
</a></span>
26 <span class=
"RenoIncludeSPAN"> template
<class Q
>
27 struct
<span class=
"RenoLink">deduce_quat
</span>
33 </div><h4>Assumption:
</h4>
34 <p><i><span class=
"RenoLink"><a href=
"is_quat.html">is_quat
</a></span><Q
>::value
</i> is true.
</p>
35 <h4>Requirements:
</h4>
36 <div><ul><li><i><span class=
"RenoLink"><a href=
"is_quat.html">is_quat
</a></span><<span class=
"RenoLink">deduce_quat
</span><Q
>::type
>::value
</i> must be
<i>true
</i></li>
37 <li><i><span class=
"RenoLink">deduce_quat
</span><Q
>::type
</i> must be copyable
</li>
39 <p>This template is used by Boost QVM whenever it needs to deduce a copyable quaternion type from a single user-supplied function parameter of quaternion type. Note that
<i>Q
</i> itself may be non-copyable.
</p>
40 <p>The main template definition returns
<i>Q
</i>, which means that it is suitable only for copyable quaternion types. Boost QVM also defines (partial) specializations for the non-copyable quaternion types it produces. Users can define other (partial) specializations for their own types.
</p>
41 <p>A typical use of the
<i><span class=
"RenoLink">deduce_quat
</span></i> template is for specifying the preferred quaternion type to be returned by the generic function template overloads in Boost QVM depending on the type of their arguments.
</p>
42 </div><div class=
"RenoAutoDIV"><div class=
"RenoHR"><hr/></div>
43 See also:
<span class=
"RenoPageList"><a href=
"boost_qvm_deduce_quat_hpp.html">boost/qvm/deduce_quat.hpp
</a> |
<a href=
"boost_qvm_quat_traits_array_hpp.html">boost/qvm/quat_traits_array.hpp
</a> |
<a href=
"conjugate.html">conjugate
</a> |
<a href=
"inverse_quat_.html">inverse(quat)
</a> |
<a href=
"normalized_quat_.html">normalized(quat)
</a> |
<a href=
"operator_times_quat_scalar_.html">operator*(quat,scalar)
</a> |
<a href=
"operator_minus_quat_.html">operator-(quat)
</a> |
<a href=
"operator_over_quat_scalar_.html">operator/(quat,scalar)
</a></span>
45 <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. -->
46 <!-- Distributed under the Boost Software License, Version 1.0. (See accompanying -->
47 <!-- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -->
50 <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>
51 <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>
52 <small>Copyright (c)
2008-
2016 by Emil Dotchevski and Reverge Studios, Inc.
<br/>
53 Distributed under the
<a href=
"http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version
1.0</a>.
</small>