$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peng Yu (pengyu.ut_at_[hidden])
Date: 2006-10-24 19:22:31
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