<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Struct insert</title> <link rel="stylesheet" href="../../../boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> <link rel="home" href="../../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp" title="Header <boost/xpressive/regex_actions.hpp>"> <link rel="prev" href="str/result_This_Sub__id1486041.html" title="Struct template result<This(Sub)>"> <link rel="next" href="insert/result.html" title="Struct template result"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <td align="center"><a href="../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="str/result_This_Sub__id1486041.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="insert/result.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> </div> <div class="refentry" title="Struct insert"> <a name="boost.xpressive.op.insert"></a><div class="titlepage"></div> <div class="refnamediv"> <h2><span class="refentrytitle">Struct insert</span></h2> <p>boost::xpressive::op::insert</p> </div> <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="emphasis"><em>// In header: <<a class="link" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp" title="Header <boost/xpressive/regex_actions.hpp>">boost/xpressive/regex_actions.hpp</a>> </em></span> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert.html" title="Struct insert">insert</a> { <span class="emphasis"><em>// member classes/structs/unions</em></span> <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> Sig, <span class="bold"><strong>typename</strong></span> EnableIf = <span class="bold"><strong>void</strong></span>> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert/result.html" title="Struct template result">result</a> { }; <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> This, <span class="bold"><strong>typename</strong></span> Cont, <span class="bold"><strong>typename</strong></span> It> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert/result_This_Cont__It__I_id1486104.html" title="Struct template result<This(Cont, It, It), void>">result</a><This(Cont, It, It), <span class="bold"><strong>void</strong></span>> { <span class="emphasis"><em>// types</em></span> <span class="bold"><strong>typedef</strong></span> <span class="bold"><strong>void</strong></span> <a class="link" href="insert/result_This_Cont__It__I_id1486104.html#boost.xpressive.op.insert.result_This(Cont,_It,_I_id1486104.type">type</a>; }; <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> This, <span class="bold"><strong>typename</strong></span> Cont, <span class="bold"><strong>typename</strong></span> It, <span class="bold"><strong>typename</strong></span> Size, <span class="bold"><strong>typename</strong></span> Value> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert/result_This_Cont__It__S_id1486139.html" title="Struct template result<This(Cont, It, Size, Value), typename disable_if< is_integral< UNCVREF(It)> >::type>">result</a><This(Cont, It, Size, Value), <span class="bold"><strong>typename</strong></span> disable_if< is_integral< UNCVREF(It)> >::type> { <span class="emphasis"><em>// types</em></span> <span class="bold"><strong>typedef</strong></span> <span class="bold"><strong>void</strong></span> <a class="link" href="insert/result_This_Cont__It__S_id1486139.html#boost.xpressive.op.insert.result_This(Cont,_It,_S_id1486139.type">type</a>; }; <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> This, <span class="bold"><strong>typename</strong></span> Cont, <span class="bold"><strong>typename</strong></span> It, <span class="bold"><strong>typename</strong></span> Value> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert/result_This_Cont__It__V_id1486187.html" title="Struct template result<This(Cont, It, Value), typename disable_if< mpl::or_< is_integral< UNCVREF(It)>, is_same< UNCVREF(It), UNCVREF(Value)> > >::type>">result</a><This(Cont, It, Value), <span class="bold"><strong>typename</strong></span> disable_if< mpl::or_< is_integral< UNCVREF(It)>, is_same< UNCVREF(It), UNCVREF(Value)> > >::type> { }; <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> This, <span class="bold"><strong>typename</strong></span> Cont, <span class="bold"><strong>typename</strong></span> Size, <span class="bold"><strong>typename</strong></span> A0, <span class="bold"><strong>typename</strong></span> A1> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert/result_This_Cont__Size__id1486228.html" title="Struct template result<This(Cont, Size, A0, A1), typename enable_if< is_integral< UNCVREF(Size)> >::type>">result</a><This(Cont, Size, A0, A1), <span class="bold"><strong>typename</strong></span> enable_if< is_integral< UNCVREF(Size)> >::type> { <span class="emphasis"><em>// <a class="link" href="insert/result_This_Cont__Size__id1486228.html#id1486270-bb">public member functions</a></em></span> <span class="type"><span class="bold"><strong>typedef</strong></span></span> <a class="link" href="insert/result_This_Cont__Size__id1486228.html#id1486273-bb">UNREF</a>(Cont) ; }; <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> This, <span class="bold"><strong>typename</strong></span> Cont, <span class="bold"><strong>typename</strong></span> Size, <span class="bold"><strong>typename</strong></span> T> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert/result_This_Cont__Size__id1486286.html" title="Struct template result<This(Cont, Size, T), typename enable_if< is_integral< UNCVREF(Size)> >::type>">result</a><This(Cont, Size, T), <span class="bold"><strong>typename</strong></span> enable_if< is_integral< UNCVREF(Size)> >::type> { <span class="emphasis"><em>// <a class="link" href="insert/result_This_Cont__Size__id1486286.html#id1486322-bb">public member functions</a></em></span> <span class="type"><span class="bold"><strong>typedef</strong></span></span> <a class="link" href="insert/result_This_Cont__Size__id1486286.html#id1486325-bb">UNREF</a>(Cont) ; }; <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> This, <span class="bold"><strong>typename</strong></span> Cont, <span class="bold"><strong>typename</strong></span> Value> <span class="bold"><strong>struct</strong></span> <a class="link" href="insert/result_This_Cont__Value_id1486338.html" title="Struct template result<This(Cont, Value), void>">result</a><This(Cont, Value), <span class="bold"><strong>void</strong></span>> { <span class="emphasis"><em>// types</em></span> <span class="bold"><strong>typedef</strong></span> <span class="bold"><strong>char</strong></span> <a class="link" href="insert/result_This_Cont__Value_id1486338.html#boost.xpressive.op.insert.result_This(Cont,_Value_id1486338.yes_type">yes_type</a>; <span class="bold"><strong>typedef</strong></span> <span class="bold"><strong>char</strong></span>(& <a class="link" href="insert/result_This_Cont__Value_id1486338.html#boost.xpressive.op.insert.result_This(Cont,_Value_id1486338.no_type">no_type</a>; <span class="bold"><strong>typedef</strong></span> mpl::if_c< is_iterator, <span class="bold"><strong>typename</strong></span> cont_type::iterator, std::pair< <span class="bold"><strong>typename</strong></span> cont_type::iterator, <span class="bold"><strong>bool</strong></span> > >::type <a class="link" href="insert/result_This_Cont__Value_id1486338.html#boost.xpressive.op.insert.result_This(Cont,_Value_id1486338.type">type</a>; <span class="emphasis"><em>// <a class="link" href="insert/result_This_Cont__Value_id1486338.html#id1486411-bb">public member functions</a></em></span> <span class="type"><span class="bold"><strong>typedef</strong></span></span> <a class="link" href="insert/result_This_Cont__Value_id1486338.html#id1486414-bb">UNREF</a>(Cont) ; <span class="type"><span class="bold"><strong>typedef</strong></span></span> <a class="link" href="insert/result_This_Cont__Value_id1486338.html#id1486428-bb">UNREF</a>(Value) ; <span class="emphasis"><em>// <a class="link" href="insert/result_This_Cont__Value_id1486338.html#id1486441-bb">public static functions</a></em></span> <span class="type"><span class="bold"><strong>static</strong></span> yes_type</span> <a class="link" href="insert/result_This_Cont__Value_id1486338.html#id1486445-bb">check_insert_return</a>(<span class="bold"><strong>typename</strong></span> cont_type::iterator) ; <span class="type"><span class="bold"><strong>static</strong></span> no_type</span> <a class="link" href="insert/result_This_Cont__Value_id1486338.html#id1486458-bb">check_insert_return</a>(std::pair< <span class="bold"><strong>typename</strong></span> cont_type::iterator, <span class="bold"><strong>bool</strong></span> >) ; <span class="bold"><strong>static</strong></span> <span class="type">cont_type &</span> scont_; <span class="bold"><strong>static</strong></span> <span class="type">value_type &</span> svalue_; <span class="bold"><strong>static</strong></span> <span class="type"><span class="bold"><strong>bool</strong></span> <span class="bold"><strong>const</strong></span></span> is_iterator; }; };</pre></div> <div class="refsect1" title="Description"> <a name="id2107977"></a><h2>Description</h2> </div> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright © 2007 Eric Niebler<p> Distributed under the Boost Software License, Version 1.0. (See accompanying 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>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="str/result_This_Sub__id1486041.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../xpressive/reference.html#header.boost.xpressive.regex_actions_hpp"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="insert/result.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a> </div> </body> </html>