diff options
| author | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-01 03:35:59 +0000 |
|---|---|---|
| committer | dgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-01 03:35:59 +0000 |
| commit | f35e07c2a3efc9ebe906a990e4eee12adc435e0a (patch) | |
| tree | 6989839fac1800a14041743cde970c5877a70995 /libstdc++-v3/testsuite/testsuite_tr1.h | |
| parent | 8fba01e80911f511447277d998260836bb4d803e (diff) | |
| download | ppe42-gcc-f35e07c2a3efc9ebe906a990e4eee12adc435e0a.tar.gz ppe42-gcc-f35e07c2a3efc9ebe906a990e4eee12adc435e0a.zip | |
2005-03-31 Chris Jefferson <chris@bubblescope.net>
* include/tr1/tuple: Support iteration via tuple_iterate.h.
* include/tr1/tuple_iterate.h: Iteration file for tuple.
2005-03-31 Douglas Gregor <doug.gregor@gmail.com>
* include/Makefile.am (tr1_headers): Add bind and mu repetition
headers and reference_wrapper<> forwarding header.
* include/Makefile.in: Regenerate.
* include/tr1/bind_iterate.h: Implementation of function call
operators for the function object returned from tr1::bind().
* include/tr1/bind_repeat.h: Bind-specific repetition header,
akin to include/tr1/repeat.h.
* include/tr1/functional (_Mem_fn): Bug fix: declare result
member
template for use with result_of.
(is_bind_expression): New.
(is_placeholder): New.
(_Placeholder): New. Placeholder type for bind.
(_Mu): New. Implementation detail of bind.
(_Bind, _Bind_result): New. Function objects returned by bind.
(_GLIBCXX_JOIN): New. Required to create bind placeholders.
* include/tr1/functional_iterate.h (_Bind, _Bind_result, bind):
New. Implementation of tr1::bind.
* include/tr1/mu_iterate.h (_Mu): result template and operator()
for the _Mu helper to bind.
* include/tr1/ref_fwd.h (reference_wrapper): Forward declaration
used by tuple header.
(ref): Ditto.
(cref): Ditto.
* include/tr1/repeat.h: Add bind-specific repetition macros.
* include/tr1/tuple: Use reference_wrapper forwarding header for
initial definitions, then include <tr1/functional> at the end, to
make the circular dependencies work.
(tie): Support zero-argument tie() function.
* testsuite/tr1/3_function_objects/bind/all_bound.cc: New test of
bind() functionality with parameters bound.
* testsuite/tr1/3_function_objects/bind/nested.cc: New test of
nested bind() expressions.
* testsuite/tr1/3_function_objects/bind/placeholders.cc: New test
of bind() placeholders.
* testsuite/tr1/3_function_objects/bind/ref.cc: New test of bind()
with arguments bound via reference_wrapper<>.
* scripts/gen_includers.pl: Generate the repetitive part of
include/tr1/repeat.h.
* scripts/gen_bind_includers.pl: Generate the repetitive part of
include/tr1/bind_repeat.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97361 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/testsuite_tr1.h')
| -rw-r--r-- | libstdc++-v3/testsuite/testsuite_tr1.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libstdc++-v3/testsuite/testsuite_tr1.h b/libstdc++-v3/testsuite/testsuite_tr1.h index fa514ca7e16..ea6affb37c1 100644 --- a/libstdc++-v3/testsuite/testsuite_tr1.h +++ b/libstdc++-v3/testsuite/testsuite_tr1.h @@ -121,18 +121,18 @@ namespace __gnu_test { operator int() const; }; class AbstractClass - { + { virtual void rotate(int) = 0; virtual ~AbstractClass(); }; class PolymorphicClass - { + { virtual void rotate(int); virtual ~PolymorphicClass(); }; - class DerivedPolymorphic : public PolymorphicClass { }; + class DerivedPolymorphic : public PolymorphicClass { }; union UnionType { }; @@ -151,14 +151,14 @@ namespace __gnu_test { ++live_objects; } - + ~do_truncate_float_t() { --live_objects; } int operator()(float x) { return (int)x; } - + static int live_objects; }; @@ -182,21 +182,21 @@ namespace __gnu_test } long operator()(double x) { return (long)x; } - + static int live_objects; }; - + int do_truncate_double_t::live_objects = 0; - + struct X { int bar; - + int foo() { return 1; } int foo_c() const { return 2; } int foo_v() volatile { return 3; } int foo_cv() const volatile { return 4; } }; -}; // namespace __gnu_test +} // namespace __gnu_test #endif // _GLIBCXX_TESTSUITE_TR1_H |

