Lines Matching defs:args

183      * Emplace one content with type of ValueType into object. The content is constructed by args.
185 * @tparam ValueType The decay type of ValueType must be constructible from args and copy constructible.
186 * @tparam Args args type
187 * @param args args
194 decay_t<ValueType>& Emplace(Args&&... args)
197 return DoEmplace<decay_t<ValueType>>(std::forward<Args>(args)...);
201 * Emplace one content with type of ValueType into object. The content is constructed by il and args.
203 * @tparam ValueType type of conetent. The decay type of ValueType must be constructible from il and args and copy
206 * @tparam Args type of other args
208 * @param args args
215 decay_t<ValueType>& Emplace(std::initializer_list<U> il, Args&&... args)
218 return DoEmplace<decay_t<ValueType>>(il, std::forward<Args>(args)...);
488 DecayedValueType& DoEmplace(Args&&... args)
494 new (ptr) DecayedValueType(std::forward<Args>(args)...);
496 storage_.heap_ = new DecayedValueType(std::forward<Args>(args)...);
701 * Constructs Any object, whose content is constructed by args. The content type is T.
704 * @tparam Args type of args
705 * @param args args used to construct the content
709 Any MakeAny(Args&&... args)
712 tmp.Emplace<T, Args...>(std::forward<Args>(args)...);
717 * Constructs Any object, whose content is constructed by il and args. The content type is T.
721 * @tparam Args type of args
723 * @param args args
727 Any MakeAny(std::initializer_list<U> il, Args&&... args)
730 tmp.Emplace<T, U, Args...>(il, std::forward<Args>(args)...);