diff options
Diffstat (limited to 'cpp/demo/Ice/nrvo/MyStringSeq.h')
-rw-r--r-- | cpp/demo/Ice/nrvo/MyStringSeq.h | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/cpp/demo/Ice/nrvo/MyStringSeq.h b/cpp/demo/Ice/nrvo/MyStringSeq.h index e5adfc4b45e..54e057a7836 100644 --- a/cpp/demo/Ice/nrvo/MyStringSeq.h +++ b/cpp/demo/Ice/nrvo/MyStringSeq.h @@ -1,32 +1,31 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + #ifndef MY_STRING_SEQ #define MY_STRING_SEQ +#include <IceUtil/Config.h> #include <vector> #include <string> -#include <iostream> class MyStringSeq : public std::vector<std::string> { public: - MyStringSeq() - {} + MyStringSeq(); + + MyStringSeq(size_t); - MyStringSeq(size_t n) : - std::vector<std::string>(n) - { - } + MyStringSeq(size_t, const std::string&); - MyStringSeq(size_t n, const std::string& str) : - std::vector<std::string>(n, str) - { - } + MyStringSeq(const MyStringSeq&); - MyStringSeq(const MyStringSeq& seq) : - std::vector<std::string>(seq) - { - std::cout << "MyStringSeq copy ctor" << std::endl; - } }; #endif |