Compartilhar via


accelerator::accelerator Constructor

Initializes a new instance of the accelerator Class.

accelerator();

explicit accelerator(
   const std::wstring &_Device_path
);

accelerator(
   const accelerator &_Other
);

Parameters

  • _Device_path
    The path of the physical device.

  • _Other
    The accelerator to copy.

Overload List

Name

Description

accelerator();

Initializes a new instance of the accelerator class. The new instance represents the default accelerator, usually the fastest accelerator available. This constructor is equivalent the constructor accelerator(accelerator::default_accelerator).

explicit accelerator( const std::wstring &_Device_path);

Initializes a new instance of the accelerator class. The new instance represents the physical device specified in the path argument. The path can be any one of the following:

accelerator( const accelerator &_Other);

Initializes a new instance of the accelerator class. The new instance is a copy of another accelerator object. This constructor performs a shallow copy. The new accelerator object points to the same underlying device that is specified in the accelerator parameter.

Requirements

Header: amprt.h

Namespace: Concurrency

See Also

Reference

accelerator Class