algorithm.h.xml 880 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <chapter xml:id="algorithm.h">
  2. <title><tt>__vic/algorithm.h</tt></title>
  3. <p>Generic algorithms.</p>
  4. <chapter xml:id="skip_if_front">
  5. <title><tt>skip_if_front()</tt></title>
  6. <code-block lang="C++"><![CDATA[
  7. template<
  8. std::forward_iterator Iter,
  9. std::predicate<std::iter_value_t<Iter>> Pred
  10. >
  11. Iter skip_if_front(Iter begin, Iter end, Pred pred);
  12. ]]></code-block>
  13. <p>Skips all leading elements that match the given predicate and returns new
  14. begin iterator.</p>
  15. </chapter>
  16. <chapter xml:id="skip_if_back">
  17. <title><tt>skip_if_back()</tt></title>
  18. <code-block lang="C++"><![CDATA[
  19. template<
  20. std::bidirectional_iterator Iter,
  21. std::predicate<std::iter_value_t<Iter>> Pred
  22. >
  23. Iter skip_if_back(Iter begin, Iter end, Pred pred);
  24. ]]></code-block>
  25. <p>Skips all trailing elements that match the given predicate and returns new
  26. end iterator.</p>
  27. </chapter>
  28. </chapter>