Lines Matching refs:Args
274 template <class... Args>
275 constexpr storage_t( Args&&... args ) : value_(constexpr_forward<Args>(args)...) {}
289 template <class... Args>
290 constexpr constexpr_storage_t( Args&&... args ) : value_(constexpr_forward<Args>(args)...) {}
308 template <class... Args> explicit optional_base(in_place_t, Args&&... args)
309 : init_(true), storage_(constexpr_forward<Args>(args)...) {}
311 template <class U, class... Args, TR2_OPTIONAL_REQUIRES(is_constructible<T, std::initializer_list<U>>)>
312 explicit optional_base(in_place_t, std::initializer_list<U> il, Args&&... args)
313 : init_(true), storage_(il, std::forward<Args>(args)...) {}
331 template <class... Args> explicit constexpr constexpr_optional_base(in_place_t, Args&&... args)
332 : init_(true), storage_(constexpr_forward<Args>(args)...) {}
334 template <class U, class... Args, TR2_OPTIONAL_REQUIRES(is_constructible<T, std::initializer_list<U>>)>
335 OPTIONAL_CONSTEXPR_INIT_LIST explicit constexpr_optional_base(in_place_t, std::initializer_list<U> il, Args&&... args)
336 : init_(true), storage_(il, std::forward<Args>(args)...) {}
380 template <class... Args>
381 void initialize(Args&&... args) noexcept(noexcept(T(std::forward<Args>(args)...)))
384 ::new (static_cast<void*>(dataptr())) T(std::forward<Args>(args)...);
388 template <class U, class... Args>
389 void initialize(std::initializer_list<U> il, Args&&... args) noexcept(noexcept(T(il, std::forward<Args>(args)...)))
392 ::new (static_cast<void*>(dataptr())) T(il, std::forward<Args>(args)...);
425 template <class... Args>
426 explicit constexpr optional(in_place_t, Args&&... args)
427 : OptionalBase<T>(in_place_t{}, constexpr_forward<Args>(args)...) {}
429 template <class U, class... Args, TR2_OPTIONAL_REQUIRES(is_constructible<T, std::initializer_list<U>>)>
430 OPTIONAL_CONSTEXPR_INIT_LIST explicit optional(in_place_t, std::initializer_list<U> il, Args&&... args)
431 : OptionalBase<T>(in_place_t{}, il, constexpr_forward<Args>(args)...) {}
474 template <class... Args>
475 void emplace(Args&&... args)
478 initialize(std::forward<Args>(args)...);
481 template <class U, class... Args>
482 void emplace(initializer_list<U> il, Args&&... args)
485 initialize<U, Args...>(il, std::forward<Args>(args)...);