9
3

at.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2012 Eric Niebler
  4. Distributed under the Boost
  5. Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. -->
  8. <header name="boost/proto/functional/fusion/at.hpp">
  9. <para>Includes Proto callable <computeroutput><classname>boost::proto::functional::at</classname></computeroutput>.</para>
  10. <namespace name="boost">
  11. <namespace name="proto">
  12. <namespace name="functional">
  13. <!-- proto::functional::at -->
  14. <struct name="at">
  15. <purpose>A <conceptname>PolymorphicFunctionObject</conceptname> type that invokes the
  16. <computeroutput>fusion::at()</computeroutput> accessor function on its arguments.</purpose>
  17. <description>
  18. <para>
  19. A <conceptname>PolymorphicFunctionObject</conceptname> type that invokes the
  20. <computeroutput>fusion::at()</computeroutput> accessor function on its arguments.</para>
  21. </description>
  22. <inherit>
  23. <type><classname>proto::callable</classname></type>
  24. </inherit>
  25. <struct-specialization name="result">
  26. <template>
  27. <template-type-parameter name="This"/>
  28. <template-type-parameter name="Seq"/>
  29. <template-type-parameter name="N"/>
  30. </template>
  31. <specialization>
  32. <template-arg>This(Seq, N)</template-arg>
  33. </specialization>
  34. <inherit>
  35. <type>fusion::result_of::at&lt;
  36. typename boost::remove_reference&lt;Seq&gt;::type
  37. , typename boost::remove_const&lt;typename boost::remove_reference&lt;N&gt;::type&gt;::type
  38. &gt;</type>
  39. </inherit>
  40. </struct-specialization>
  41. <method-group name="public member functions">
  42. <method name="operator()" cv="const">
  43. <type>typename fusion::result_of::at&lt; Seq, N &gt;::type</type>
  44. <template>
  45. <template-type-parameter name="Seq"/>
  46. <template-type-parameter name="N"/>
  47. </template>
  48. <parameter name="seq">
  49. <paramtype>Seq &amp;</paramtype>
  50. </parameter>
  51. <parameter name="n">
  52. <paramtype>N const &amp;</paramtype>
  53. </parameter>
  54. <returns>
  55. <para><computeroutput>fusion::at&lt;N&gt;(seq)</computeroutput></para>
  56. </returns>
  57. </method>
  58. <method name="operator()" cv="const">
  59. <type>typename fusion::result_of::at&lt; Seq const, N &gt;::type</type>
  60. <template>
  61. <template-type-parameter name="Seq"/>
  62. <template-type-parameter name="N"/>
  63. </template>
  64. <parameter name="seq">
  65. <paramtype>Seq const &amp;</paramtype>
  66. </parameter>
  67. <parameter name="n">
  68. <paramtype>N const &amp;</paramtype>
  69. </parameter>
  70. <returns>
  71. <para><computeroutput>fusion::at&lt;N&gt;(seq)</computeroutput></para>
  72. </returns>
  73. </method>
  74. </method-group>
  75. </struct>
  76. </namespace>
  77. </namespace>
  78. </namespace>
  79. </header>