Google C++ Style Guidetransfer of pointer ownership), leaving textual hints for the reader at the point of use is valuable (std::unique_ptr demonstrates the ownership transfer unambiguously at the call site). Be consistent with with a default value, or migrating to a new namespace. • Forward declaring symbols from namespace std:: yields undefined be- havior. • It can be difficult to determine whether a forward declaration or namespace a • Do not declare anything in namespace std, including forward declarations of standard library classes. Declaring entities in namespace std is unde- fined behavior, i.e., not portable. To declare0 码力 | 83 页 | 238.71 KB | 1 年前3
Bring Your Own Codegen to TVMCodegen Built Shared Library runtime::PackedFunc DNNLModule::GetFunction( const std::string& name, const std::shared_ptr& sptr_to_self) { if (name == "init") { return PackedFunc([sptr_to_self this->Init(args[0]); . }); } else { std::string curr_id = GetSubgraphID(name); return PackedFunc([sptr_to_self, curr_id, this](TVMArgs TVMRetValue* rv) { auto out = reinterpret_cast (args[args.size() - 1]>data); std::string encoded_name = kDnnlPrefix + curr_id; . auto func_s = reinter 0 码力 | 19 页 | 504.69 KB | 6 月前3
Krita 5.2 Manualconnect via // native Qt signals) strength.bind(std::bind(&QDoubleSpinBox::setValue, strengthSpinBox, std::placeholders::_1)); lager::reader<> and lager::writer<> standard function or functor which is used to // transform the source cursor on-the-fly .map(std::logical_and{}); We use such “effectiveValue” design a lot. It is the main tool against the cycling don't do this! allowedByTheBrush.bind(std::bind(&lager::cursor::set, &isCheckedByUser, std::placeholders::_1); Such design has a 0 码力 | 1502 页 | 79.07 MB | 1 年前3
Krita 5.2 브로셔connect via // native Qt signals) strength.bind(std::bind(&QDoubleSpinBox::setValue, strengthSpinBox, std::placeholders::_1)); lager::reader<> and lager::writer<> standard function or functor which is used to // transform the source cursor on-the-fly .map(std::logical_and{}); We use such “effectiveValue” design a lot. It is the main tool against the cycling don't do this! allowedByTheBrush.bind(std::bind(&lager::cursor::set, &isCheckedByUser, std::placeholders::_1); Such design has a 0 码力 | 1531 页 | 79.11 MB | 1 年前3
Krita 4.x 官方文档中文版 2021-08-06Aobfuscating. For example, auto x = 2 is not obviously an integer, and auto x = {"a", "b", "c"} returns std��initializer_list, and sometimes it is not clear what some function returns by the name of the function QStringList x = {"abc", "def", "xyz" }; and if you later changed the type to QVector, or even std��list<std��string>, you wouldn’t have to make any change to the right hand side. A second place initializer standard algorithm library , which is described below. In Qt5, this, along with std::function and std::bind, allow for One of the most useful C++11 integrations, a new signal/slot syntax which 0 码力 | 1594 页 | 110.95 MB | 1 年前3
Krita 5.2 中文手册connect via // native Qt signals) strength.bind(std::bind(&QDoubleSpinBox::setValue, strengthSpinBox, std::placeholders::_1)); lager::reader<> and lager::writer<> standard function or functor which is used to // transform the source cursor on-the-fly .map(std::logical_and{}); We use such “effectiveValue” design a lot. It is the main tool against the cycling don't do this! allowedByTheBrush.bind(std::bind(&lager::cursor::set, &isCheckedByUser, std::placeholders::_1); Such design has a 0 码力 | 1594 页 | 79.20 MB | 1 年前3
Krita 4.x 官方文档中文版 2021-08-06Aobfuscating. For example, auto x = 2 is not obviously an integer, and auto x = {"a", "b", "c"} returns std::initializer_list, and sometimes it is not clear what some function returns by the name of the function QStringList x = {"abc", "def", "xyz" }; and if you later changed the type to QVector, or even std::list<std::string>, you wouldn’t have to make any change to the right hand side. A second place initializer standard algorithm library , which is described below. In Qt5, this, along with std::function and std::bind, allow for One of the most useful C++11 integrations, a new signal/slot syntax which 0 码力 | 1373 页 | 74.74 MB | 1 年前3
Krita 5.2 官方文档中文版 2023-12-08Aconnect via �� native Qt signals) strength.bind(std��bind(&QDoubleSpinBox��setValue, strengthSpinBox, std��placeholders��_1)); lager��reader�� and lager��writer�� function or functor which is used to �� transform the source cursor on-the-fly .map(std��logical_and{}); We use such “effectiveValue” design a lot. It is the main tool against the cycling don't do this! allowedByTheBrush.bind(std��bind(&lager��cursor��set, &isCheckedByUser, std��placeholders��_1); Such design has a small 0 码力 | 1685 页 | 91.87 MB | 1 年前3
Krita 5.2 官方文档中文版 2023-12-08Aconnect via // native Qt signals) strength.bind(std::bind(&QDoubleSpinBox::setValue, strengthSpinBox, std::placeholders::_1)); lager::reader<> and lager::writer<> function or functor which is used to // transform the source cursor on-the-fly .map(std::logical_and{}); We use such “effectiveValue” design a lot. It is the main tool against the cycling don't do this! allowedByTheBrush.bind(std::bind(&lager::cursor::set, &isCheckedByUser, std::placeholders::_1); Such design has a small 0 码力 | 1562 页 | 79.19 MB | 1 年前3
Krita 5.1 官方文档中文版 2023-05-26Aconnect via // native Qt signals) strength.bind(std::bind(&QDoubleSpinBox::setValue, strengthSpinBox, std::placeholders::_1)); lager::reader<> and lager::writer<> function or functor which is used to // transform the source cursor on-the-fly .map(std::logical_and{}); We use such “effectiveValue” design a lot. It is the main tool against the cycling don't do this! allowedByTheBrush.bind(std::bind(&lager::cursor::set, &isCheckedByUser, std::placeholders::_1); Such design has a small 0 码力 | 1547 页 | 78.22 MB | 1 年前3
共 182 条
- 1
- 2
- 3
- 4
- 5
- 6
- 19













