Does shared_array's get() method introduce runtime overhead?
24 Oct
2006
24 Oct
'06
11:22 p.m.
Hi, I have the following two code segments. I'm wondering if there is any run time overhead of the get() method. Shall I use the latter one instead of the former one? boost::shared_array a(new int[100]); for(int i = 0; i < 100; ++ i) a[i] = i; boost::shared_array a(new int[100]); int a_ptr = a.get(); for(int i = 0; i < 100; ++ i) a_ptr[i] = i; Thanks, Peng
6596
Age (days ago)
6596
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peng Yu