Deprecated the documentation of predecessor and successor. Added new documentation for cpp0x::{next,prev}

This commit is contained in:
Philipp Möller 2011-06-07 12:29:43 +00:00
parent fb85f14247
commit c46c4460bc
2 changed files with 56 additions and 18 deletions

View File

@ -52,6 +52,8 @@
%% Filter_iterator with std::min/max_element().
%%\ccRefIdfierPage{CGAL::min_element_if}\\
%%\ccRefIdfierPage{CGAL::max_element_if}\\
\ccRefIdfierPage{CGAL::cpp0x::next}\\
\ccRefIdfierPage{CGAL::cpp0x::prev}\\
\ccRefIdfierPage{CGAL::predecessor}\\
\ccRefIdfierPage{CGAL::successor}

View File

@ -12,41 +12,77 @@
%% +=========================================================================+
%% +---------------------------------------------+
\begin{ccRefFunction}{cpp0x::next}
\label{sectionNext}
\label{sectionGenericFunctions}
There is actually no function in namespace \ccc{CGAL::cpp0x} with
this name, but a using declaration which imports a function from
another namespace. By order of priority: the one in namespace
\ccc{std} is used (provided by C++0x), if not found, then the one in
namespace \ccc{boost} is used.
\ccInclude{CGAL/algorithm.h}
\end{ccRefFunction}
%% +---------------------------------------------+
\begin{ccRefFunction}{cpp0x::prev}
\label{sectionPrev}
\label{sectionGenericFunctions}
There is actually no function in namespace \ccc{CGAL::cpp0x} with
this name, but a using declaration which imports a function from
another namespace. If C++0x is available the one in namespace
\ccc{std} is used. If not found, \ccc{cpp0x::prev} is declared with
the signature given in the standard and forwarded to \ccc{boost::prior}.
\ccInclude{CGAL/algorithm.h}
\end{ccRefFunction}
%% +---------------------------------------------+
\begin{ccRefFunction}{predecessor}
\label{sectionPredecessor}
\label{sectionGenericFunctions}
This function is deprecated. \ccc{CGAL::cpp0x::prev} should be used
instead.
\ccDefinition The function \ccRefName\ returns the previous iterator,
i.e. the result of \ccc{operator--} on a bidirectional iterator.
\begin{ccDeprecated}
\ccDefinition The function \ccRefName\ returns the previous iterator,
i.e. the result of \ccc{operator--} on a bidirectional iterator.
\ccInclude{CGAL/algorithm.h}
\ccInclude{CGAL/algorithm.h}
\ccThree{BidirectionalIterator}{predecessor}{}
\ccFunction{template <class BidirectionalIterator>
BidirectionalIterator predecessor(BidirectionalIterator it);}
\ccThree{BidirectionalIterator}{predecessor}{}
\ccFunction{template <class BidirectionalIterator>
BidirectionalIterator predecessor(BidirectionalIterator it);}
{returns \ccc{--it}.}
\ccSeeAlso
\ccRefIdfierPage{CGAL::successor}
\ccSeeAlso
\ccRefIdfierPage{CGAL::successor}
\end{ccDeprecated}
\end{ccRefFunction}
%% +---------------------------------------------+
\begin{ccRefFunction}{successor}
\label{sectionSuccessor}
\ccDefinition The function \ccRefName\ returns the next iterator, i.e.
the result of \ccc{operator++} on a forward iterator.
This function is deprecated. \ccc{CGAL::cpp0x::next} should be used
instead.
\begin{ccDeprecated}
\ccDefinition The function \ccRefName\ returns the next iterator, i.e.
the result of \ccc{operator++} on a forward iterator.
\ccInclude{CGAL/algorithm.h}
\ccInclude{CGAL/algorithm.h}
\ccThree{ForwardIterator}{successor}{}
\ccFunction{template <class ForwardIterator>
ForwardIterator successor(ForwardIterator it);}
\ccThree{ForwardIterator}{successor}{}
\ccFunction{template <class ForwardIterator>
ForwardIterator successor(ForwardIterator it);}
{returns \ccc{++it}.}
\ccSeeAlso
\ccRefIdfierPage{CGAL::predecessor}
\ccSeeAlso
\ccRefIdfierPage{CGAL::predecessor}
\end{ccDeprecated}
\end{ccRefFunction}
%% +---------------------------------------------+