POV-Ray : Newsgroups : povray.programming : Vectors in C++ : Re: Vectors in C++ Server Time
6 Oct 2024 13:47:05 EDT (-0400)
  Re: Vectors in C++  
From: Tony[B]
Date: 16 Dec 2002 12:43:25
Message: <3dfe10bd@news.povray.org>
Just to confirm something, Warp. This

std::vector<double> myVector(3);

is instantiating a double vector, with an initial size of 3 elements, yes?

Also, do you prefer to always add "std::", or do you think it's ok to toss
in the respective "using"? (Say, as long as this file is not to be included
in another.) And on that topic, is there, or wouldn't it be neat if there
were, something like "stop using", so you could do things like this?

using namespace std;

/* do your thing */

stop using namespace std;

:)

--
Anthony Bennett


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.