]>
Commit | Line | Data |
---|---|---|
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>vec_index_write</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>vec_index_write</h3> | |
20 | </div> | |
21 | <div class="RenoIncludeDIV"><p><span class="RenoEscape">#<!--<wiki>`#</wiki>--></span>include <<span class="RenoLink"><a href="boost_qvm_vec_index_hpp.html">boost/qvm/vec_index.hpp</a></span>></p> | |
22 | <pre>namespace boost | |
23 | { | |
24 | namespace <span class="RenoLink"><a href="qvm.html">qvm</a></span> | |
25 | { | |
26 | <span class="RenoIncludeSPAN"> //Only <span class="RenoLink"><a href="SFINAE_enable_if.html">enabled if</a></span>: | |
27 | // <span class="RenoLink"><a href="is_vec.html">is_vec</a></span><A>::value | |
28 | template <class A> | |
29 | typename <span class="RenoLink"><a href="vec_traits.html">vec_traits</a></span><A>::<span class="RenoLink"><a href="vec_traits_V_scalar_type.html">scalar_type</a></span> & | |
30 | <span class="RenoLink">vec_index_write</span>( A & a, int i );</span> | |
31 | } | |
32 | }</pre> | |
33 | </div><h4>Returns:</h4> | |
34 | <p>A mutable reference to the <i>i</i>-th element of <i>a</i>.</p> | |
35 | <h4>Preconditions:</h4> | |
36 | <p><i>i >= 0 && i < <span class="RenoLink"><a href="vec_traits.html">vec_traits</a></span><A>::<span class="RenoLink"><a href="vec_traits_Vector_dim.html">dim</a></span></i>.</p> | |
37 | <h4>Note:</h4> | |
38 | <p>This function uses template metaprogramming and can be used even if the optional access function <i><span class="RenoLink"><a href="vec_traits.html">vec_traits</a></span><A>::<span class="RenoLink"><a href="vec_traits_V_write_element_idx.html">write_element_idx</a></span></i> is not available.</p> | |
39 | </div><div class="RenoAutoDIV"><div class="RenoHR"><hr/></div> | |
40 | See also: <span class="RenoPageList"><a href="boost_qvm_vec_index_hpp.html">boost/qvm/vec_index.hpp</a></span> | |
41 | </div> | |
42 | <!-- Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. --> | |
43 | <!-- 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) --> | |
45 | <div id="footer"> | |
46 | <p> | |
47 | <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> | |
48 | <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> | |
49 | <small>Copyright (c) 2008-2016 by Emil Dotchevski and Reverge Studios, Inc.<br/> | |
50 | Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License, Version 1.0</a>.</small> | |
51 | </p> | |
52 | </div> | |
53 | </div> | |
54 | </div> | |
55 | </div> | |
56 | </body> | |
57 | </html> |