forked from boostorg/concept_check
update to match code
[SVN r8441]
This commit is contained in:
@@ -51,8 +51,9 @@ concept, which must be verified by careful (manual) inspection.
|
|||||||
<pre>
|
<pre>
|
||||||
template <class T>
|
template <class T>
|
||||||
struct input_proxy {
|
struct input_proxy {
|
||||||
operator T() { return t; }
|
operator const T&() {
|
||||||
static T t;
|
return static_object<T>::get(); // Get a reference without constructing
|
||||||
|
}
|
||||||
};
|
};
|
||||||
template <class T>
|
template <class T>
|
||||||
class trivial_iterator_archetype
|
class trivial_iterator_archetype
|
||||||
@@ -107,8 +108,7 @@ layered archetype can be used.
|
|||||||
<pre>
|
<pre>
|
||||||
{
|
{
|
||||||
typedef less_than_comparable_archetype<
|
typedef less_than_comparable_archetype<
|
||||||
copy_constructible_archetype<
|
sgi_assignable_archetype<> > ValueType;
|
||||||
assignable_archetype<> > > ValueType;
|
|
||||||
random_access_iterator_archetype<ValueType> ri;
|
random_access_iterator_archetype<ValueType> ri;
|
||||||
std::stable_sort(ri, ri);
|
std::stable_sort(ri, ri);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user