Type: Posts; User: Rajesh1978
Search took 0.02 seconds.
September 16th, 2015, 01:11 AM
Yes that is correct. Random iterator is able to do the functionality of all other iterators.
September 15th, 2015, 02:08 PM
Among the 5 iterators (input,output, random, bidirecational, forward and backward) which is associated with vectors?
What i think is vector is associated with all the above iterators.
March 25th, 2015, 10:14 PM
March 23rd, 2015, 01:36 PM
across drives mean?
in linux i saw a code where i see copy and unlink to /mnt/mypath instead move
thats why the doubt
March 23rd, 2015, 01:18 PM
i have one doubt is it good to move the file from one path to other path.
Or it is good to copy the file and unlink.
February 18th, 2015, 09:58 PM
February 16th, 2015, 12:47 PM
Very good knowledge is being exchanged.
Thanks to all gurus
Now my real question is repeated
I meant the above quoted thing in the beginning.
question is why two exceptions can not be...
February 12th, 2015, 12:26 PM
It is advisable not to throw the exception from destructor. Because if exception happens stack unwinding happens. suppose the destructor again throws the exception then on part of first exception...
November 7th, 2014, 12:44 AM
I even tried with set. Not much difference i see.
In all the cases i see stat is faster.
May be it is chacheing and using the the entries from the cache.
also the operation is happening in a...
November 6th, 2014, 09:39 PM
unordered set is there in c++ 11. As I am using older gcc compiler I do not have that.
One more thing is there any system call in linux which notifies the changes in a directory ?
November 6th, 2014, 12:15 PM
I tested with below scenario.
1. I put 15K files on a directory
2. used stat command to check the existance of some 5 files
Time taken 2 miliseconds
3. Did same thing using opendir. Loaded all...
November 5th, 2014, 01:46 PM
i am accessing the location every 1 sec. Some time 3-4 files of size 800k is getting added per 1sec.
I am getting delay once the number of files are more in the path
November 5th, 2014, 01:31 PM
I want to check some 5 files one at a time.
New files get added 2/min in that path.
November 5th, 2014, 12:57 PM
I am using stat command to check the existence of a file in a directory.
The directory is having some 10K files. I feel the stat() call is expensive as i do not need the structure to be...
August 25th, 2014, 02:16 PM
Yes without synchronization there will be lot of problem.
August 25th, 2014, 03:20 AM
Suppose multiple threads are are trying to insert into a STL Map, both are trying to insert with same key. As per my understanding it will not cause any issue till you invalidate the iterator. Here...
November 29th, 2013, 03:09 AM
November 26th, 2013, 12:47 PM
I have the following piece of code.
using namespace std;
June 11th, 2013, 01:46 PM
So is it wrong to say Reference is constant pointer?
June 10th, 2013, 02:01 PM
what is the advantage of using reference over constant pointer?
Can they be used interchangeably?
April 22nd, 2013, 06:53 AM
Now it seems to be correctly resolved thread
April 22nd, 2013, 06:26 AM
I agree with Eri. But still the question is on its place as why the default constructor is added by default. What is its role.
Think that I have all the POD attributes then what is the use?
March 5th, 2013, 01:34 PM
If you have a class with virtual function then the virtual destructor is required. Otherwise normal destructor is sufficient.
December 13th, 2012, 01:48 AM
December 13th, 2012, 12:40 AM
I got it now.
while testing this i got one more confusion.
if i make the comp as below
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!