diff options
Diffstat (limited to 'cpp/demo/Ice/nrvo/MyStringSeq.h')
-rw-r--r-- | cpp/demo/Ice/nrvo/MyStringSeq.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cpp/demo/Ice/nrvo/MyStringSeq.h b/cpp/demo/Ice/nrvo/MyStringSeq.h new file mode 100644 index 00000000000..e5adfc4b45e --- /dev/null +++ b/cpp/demo/Ice/nrvo/MyStringSeq.h @@ -0,0 +1,32 @@ +#ifndef MY_STRING_SEQ +#define MY_STRING_SEQ + +#include <vector> +#include <string> +#include <iostream> + +class MyStringSeq : public std::vector<std::string> +{ +public: + + MyStringSeq() + {} + + MyStringSeq(size_t n) : + std::vector<std::string>(n) + { + } + + MyStringSeq(size_t n, const std::string& str) : + std::vector<std::string>(n, str) + { + } + + MyStringSeq(const MyStringSeq& seq) : + std::vector<std::string>(seq) + { + std::cout << "MyStringSeq copy ctor" << std::endl; + } +}; + +#endif |