Template:cpp/io/basic fstream/constructor

Constructs new file stream.

@1@ Default constructor: constructs a stream that is not associated with a file: default-constructs the std and constructs the base with the pointer to this default-constructed std member. @2,3@ First, performs the same steps as the default constructor, then associates the stream with a file by calling (see std for the details on the effects of that call). If the call returns a null pointer, sets. @4,5@ Same as. @6@ Move constructor. First, move-constructs the base class from (which does not affect the  pointer), then move-constructs the std member, then calls  to install the new  as the  pointer in the base class. @7@ The copy-constructor is deleted: this class is not copyable.