Back to Basics: Smart Pointersnt max() std::cout # Smart Pointers std::cout ## Back to Basics d(std::logical std::cout << "myVec::"; for (auto i: myVec).std::cout std::cout << "\n"; std::vectormyVec2); Rainer Grimm Training, Coaching, and Technology Consulting www.ModernesCpp.net ## Smart Pointer A First Overview std::unique_ptr – Exclusive Ownership std::shared_ptr - Shared Ownership std::weak_ptr – Break of Cyclic References Performance Concurrency Function Arguments and Return Values ## Smart Pointer A First Overview std::unique_ptr – Exclusive Ownership std::shared_ptr - Shared Ownership0 码力 | 30 页 | 625.43 KB | 1 年前3
Back to Basics: Pointers## +21 ## Back to Basics: Pointers ## MIKE SHAH 2021 October 24-29 ## Please do not redistribute slides without prior permission ## Back to Basics: Pointers Mike Shah, Ph.D. @MichaelShah | mshah.io and enticed you to join me is here! Pointers are scary. Unfortunately that previous statement is what many beginners take away when first learning about pointers and the C++ language. In this talk, we examples of raw pointers for creating data structures, passing data into functions, dynamically allocated arrays, and function pointers. This portion will cover capabilities of raw pointers and syntax: $0 码力 | 152 页 | 5.61 MB | 1 年前3
Rustle: the first static analyzer for smart contracts in RustRUST CHINA CONF 2023 第三届中国Rust开发者大会 6.17-6.18 @Shanghai ## Rustle: the first static analyzer for smart contracts in Rust Matthew Jiang Director of Security Team @ BlockSec Outline 1 Motivation 2 Background Conclusion ## Motivation Why do we develop Rustle? ## 😍 ## Motivation Emerging chains with Rust as smart contracts language ## SOLANA NEAR NERVOS Polkadot CosmWasm ## Limitations of manual audit • Time-consuming IR Back-end x86 ARM BPF WASM LLVM Pass: rich APIs to analysis the LLVM IR Blockchains with smart contracts in Rust ## Near Rust  # Six ways for Implementing Math Expressions Calculator A walk through polymorphism, smart pointers, templates, concepts and more Amir Kirsh  << endl; delete e; Why do we use new and delete to begin with? Shouldn't we use smart pointers? First improvement attempt: unique_ptr ## Let's try it together Live Coding! ## Let's programming language! ## Summary (2) Pointers / References are not mandatory for Polymorphism! - Prefer using smart pointers for internal members - Try to hide your smart pointers, exposing value type semantics0 码力 | 63 页 | 1.85 MB | 1 年前3
Candid: the interface description language of the Internet Computer smart contracts - 陈研@Shanghai Rust China Conf 2023 ## Candid: the interface description language of the Internet Computer smart contracts -- How DFINITY uses procedure macro to extend Rust Yan Chen DFINITY Foundation  Daniel Anderson and what it is used for • You’ve heard of shared_ptr Things we won't cover • Alias pointers, weak pointers Carnegie Mellon University ## What we'll learn today • How shared ptr and what it is used for • You’ve heard of shared ptr Things we won't cover • Alias pointers, weak pointers Carnegie Mellon University ## Why is this important?  o 11.2. scanf() • 12. Variables pointer to the first element of the array, and as such can be used like a normal pointer. More on pointers soon. ### 8. Strings In C, strings are one special kind of array: a string is an array of char of two strings • strlen() to calculate the length of a string and many, many more. ### 9. Pointers Pointers are one of the most confusing/challenging parts of C, in my opinion. Especially if you are0 码力 | 60 页 | 908.68 KB | 2 年前3
Hyperledger Fabric 1.4.9 Documentationcryptocurrency, took a different approach, integrating many of the same characteristics as Bitcoin but adding smart contracts to create a platform for distributed applications. Bitcoin and Ethereum fall into a class chain and even digital music delivery. Fabric is the first distributed ledger platform to support smart contracts authored in general-purpose programming languages such as Java, Go and Node.js, rather than domain-specific languages (DSL). This means that most enterprises already have the skill set needed to develop smart contracts, and no additional training to learn a new language or DSL is needed. The Fabric platform0 码力 | 701 页 | 9.02 MB | 2 年前3
Hyperledger Fabric 2.0.1 Documentationcryptocurrency, took a different approach, integrating many of the same characteristics as Bitcoin but adding smart contracts to create a platform for distributed applications. Bitcoin and Ethereum fall into a class chain and even digital music delivery. Fabric is the first distributed ledger platform to support smart contracts authored in general-purpose programming languages such as Java, Go and Node.js, rather than domain-specific languages (DSL). This means that most enterprises already have the skill set needed to develop smart contracts, and no additional training to learn a new language or DSL is needed. The Fabric platform0 码力 | 533 页 | 8.37 MB | 2 年前3
Hyperledger Fabric 2.0.1 Documentationcryptocurrency, took a different approach, integrating many of the same characteristics as Bitcoin but adding smart contracts to create a platform for distributed applications. Bitcoin and Ethereum fall into a class chain and even digital music delivery. Fabric is the first distributed ledger platform to support smart contracts authored in general-purpose programming languages such as Java, Go and Node.js, rather than domain-specific languages (DSL). This means that most enterprises already have the skill set needed to develop smart contracts, and no additional training to learn a new language or DSL is needed. The Fabric platform0 码力 | 760 页 | 10.21 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
std::unique_ptrstd::shared_ptrstd::weak_ptrRAIIC++20指针内存地址动态数组函数指针智能指针静态分析智能合约Rust安全漏洞区块链polymorphismsmart pointerstemplatesconceptsC++CandidDFINITY递归类型原子共享指针锁-free拆分引用计数基准测试递延回收Variables and typesControl structuresArraysPointersFunctionsHyperledger FabricBlockchainSmart ContractsChaincodePermissioned BlockchainDistributed ledgerChannelSmart contractBlockchain networkDocker images













