|
|
От: |
Tan4ik
|
|
| Дата: | 24.10.03 09:42 | ||
| Оценка: | |||
valarray<T>& operator=(const T& x);
member operator replaces each element of the controlled sequence with a copy of x
class myclass : public vector<int>
{
public:
myclass& operator=(int a)
{
(*this).assign(1,a);
return *this;
}
};