다음을 통해 공유


basic_path::basic_path Constructor

Constructs a basic_path object.

basic_path();
basic_path(const string_type& Str);
basic_path(const value_type *Ptr);
template<class InIt>
basic_path(
   InIt First,
   InIt Last
);
basic_path(const basic_path& Right);
basic_path(basic_path&& Right);

Parameters

  • Str
    A string.

  • Ptr
    A pointer to an array of characters.

  • First
    The first element in a range of characters.

  • Last
    The element immediately after the last element of the character range.

  • Right
    A basic_path object.

Remarks

The first constructor default-initializes the stored string.

The second constructor initializes its string by using Str.

The third constructor initializes its string by using the array of characters that is pointed to by Ptr.

The fourth constructor initializes the stored string from the range [First, Last).

The fifth constructor initializes the stored string by using the stored string in Right.

The final constructor initializes the stored string by moving the stored string from Right.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

basic_path Class

<filesystem>