Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
まったく同じ質問は見つかりませんでした。
変換する方法はありますか:
std::vector<boost::shared_ptr<T>>
安全でないバージョンに:
std::vector<T*>
for ループを実行せずに、元のベクトルの各要素で .get() を使用しますか?
std::transform(safe.begin(), safe.end(), std::back_inserter(unsafe), boost::bind(&boost::shared_ptr<T>::get, _1));