Boost C++ Libraries: Ticket #2487: Calculate the mlp::and_ or mpl_or of a sequence of nullary logical metafunctions. https://svn.boost.org/trac10/ticket/2487 <p> Do you think that these two metafunctions have a place in mpl? </p> <p> template &lt;typename Seq&gt; struct and_seq : boost::is_same&lt;typename mpl::find_if&lt;Seq, mpl::not_&lt;mpl::_&gt; &gt;::type, </p> <blockquote> <p> typename mpl::end&lt;Seq&gt;::type&gt; </p> </blockquote> <blockquote> <p> {}; </p> </blockquote> <p> template &lt;typename Seq&gt; struct or_seq : mpl::not_&lt;boost::is_same&lt;typename mpl::find_if&lt;Seq, mpl::_&gt;::type, </p> <blockquote> <p> typename mpl::end&lt;Seq&gt;::type&gt; </p> <blockquote class="citation"> <p> {}; </p> </blockquote> </blockquote> <p> I have attached the code and the tests. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2487 Trac 1.4.3 vicente.botet@… Sat, 08 Nov 2008 22:42:53 GMT attachment set https://svn.boost.org/trac10/ticket/2487 https://svn.boost.org/trac10/ticket/2487 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">and_seq.hpp</span> </li> </ul> <p> mlp::and_ of a sequence of nullary logical metafunctions. </p> Ticket vicente.botet@… Sat, 08 Nov 2008 22:43:23 GMT attachment set https://svn.boost.org/trac10/ticket/2487 https://svn.boost.org/trac10/ticket/2487 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">or_seq.hpp</span> </li> </ul> <p> mlp::or_ of a sequence of nullary logical metafunctions. </p> Ticket vicente.botet@… Sat, 08 Nov 2008 22:43:26 GMT attachment set https://svn.boost.org/trac10/ticket/2487 https://svn.boost.org/trac10/ticket/2487 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">or_seq.2.hpp</span> </li> </ul> <p> mlp::or_ of a sequence of nullary logical metafunctions. </p> Ticket vicente.botet@… Sat, 08 Nov 2008 22:44:30 GMT attachment set https://svn.boost.org/trac10/ticket/2487 https://svn.boost.org/trac10/ticket/2487 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_and_seq.cpp</span> </li> </ul> <p> and_seq test </p> Ticket vicente.botet@… Sat, 08 Nov 2008 22:44:58 GMT attachment set https://svn.boost.org/trac10/ticket/2487 https://svn.boost.org/trac10/ticket/2487 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_or_seq.cpp</span> </li> </ul> <p> or_seq test </p> Ticket cppljevans@… Sat, 12 Jun 2010 16:46:25 GMT <link>https://svn.boost.org/trac10/ticket/2487#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2487#comment:1</guid> <description> <p> The while_recur2.hpp attachment to another ticket: </p> <p> <a class="ext-link" href="https://svn.boost.org/trac/boost/attachment/ticket/3044/while_recur.2.cpp"><span class="icon">​</span>https://svn.boost.org/trac/boost/attachment/ticket/3044/while_recur.2.cpp</a> </p> <p> would be one way to implement these two metafunctions, as claimed by the post: </p> <p> <a class="ext-link" href="http://lists.boost.org/Archives/boost/2009/06/153119.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2009/06/153119.php</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>