std::unique_ptrのコンストラクタのページに自作デリータを使った例を追加してみました。念の為、Valgrindでメモリリークが無いことを確認してます。
std::unique_ptr<int> p3(new int(3), std::default_delete<int>()); assert(p3); // 自作デリータを使った例 { std::allocator<int> alloc; int* p = AllocTraits::allocate(alloc, 1); AllocTraits::construct(alloc, p, 4); std::unique_ptr<int, Deleter> p4(p, Deleter(alloc)); as...
observer_ptr−检测手法 标准库扩展 v3(库基础 TS v3) scope_exit−scope_fail−scope_success−unique_resource 并行库扩展 v2(并行 TS v2) simd 并发库扩展(并发 TS) 事务性内存(TM TS) 反射(反射 TS) 外部链接−非 ANSI/ISO 库−索引−std 符号索引 ...
{// Maintain a set of node ids that we've encountered.LIBMESH_BEST_UNORDERED_SET<dof_id_type> encountered_node_ids;// Localize input_solution so that we have the data to move all// elements (not just elements local to this processor).UniquePtr< NumericVector<Number> > localized_input_so...
320returnpn.unique(); 321} 322 323longuse_count()const// never throws 324{ 325returnpn.use_count(); 326} 327 328voidswap(shared_ptr<T>& other)// never throws 329{ 330std::swap(px, other.px); 331pn.swap(other.pn); 332}
(llvm::raw_ostream&, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, mlir::DialectRegistry&, mlir::MlirOptMainConfig const&)::$_0>(long, std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer>>, llvm::raw_ostream&) MlirOptMain.cpp:...
Each REF value has a unique identifier of the object it refers to. An SQL REF value may be used instead of the SQL structured type it references; it may be used as either a column value in a table or an attribute value in a structured type. Because an SQL REF value is a logical...
Member MPxIkSolverNode::hasUniqueSolution () const Defaults to a false return. Member MPxIkSolverNode::isPositionOnly () const Defaults to a false return. Member MPxManipulatorNode::shouldDrawHandleAsSelected (unsigned int name, bool &useSelectedColor) const This function is obsolete, ple...
os_ptr op = osp; uint n, i; es_ptr esp_orig; check_int_leu(*op, max_uint -1); n = (uint) op->value.intval; check_op(n +1); check_estack(n); esp_orig = esp;for(i =0; i < n; ++i) {constref *rp = ref_stack_index(&o_stack, (long)(i +1));/* Make sure ...
void cppcms::http::context::submit_to_pool(booster::shared_ptr<application_specific_pool>pool, std::string const &matched_url ) Submit the context to alternative pool - allows to transfer context from application to application,matched_urlwould be given toapplication::mainfor processing ...