C++11 Features in Visual C++ 11

Visual Studio配置C++17标准:从原理到实践的全方位指南 C++语言标准是指导编译器进行代码解析和编译的规范,它定义了语法、库和核心语言特性。随着ISO C++标准的迭代,每个新版本都引入了更安全、更高效的特性,如内存管理优化、类型系统增强和标准库扩展。这些改进不仅提升了代码的健壮性和可维护性,还直接影响了开发效率和软件性能。在工程实践中,正确配置编译器以支持特定C++标准是项目现代化的基础步骤,能确保开发者充分利用新特性,同时避免兼容性问题。例如,在Windows平台的Visual Studio开发环境中,通过项目属性或CMake配置启用C++17标准,可以解锁 阅读详情

转自:http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx(虽然4年前的知识,对于现在还在vs2010的猿们还是有用的,收藏下吧)


UPDATE - March 2, 2012: the range-based for-loop and override/final v1.0 have been implemented in VC11 Beta.

 

There's a new C++ Standard and a new version of Visual C++, and it's time to reveal what features from the former we're implementing in the latter!

Terminology notes: During its development, the new C++ Standard was (optimistically) referred to as C++0x.  It's finally being published in 2011, and it's now referred to as C++11.  (Even International Standards slip their release dates.)  The Final Draft International Standard is no longer publicly available.  It was immediately preceded by Working Paper N3242, which is fairly close in content.  (Most of the people who care about the differences are compiler/Standard Library devs who already have access to the FDIS.)  Eventually, I expect that the C++11 Standard will be available from ANSI, like C++03 is.

As for Visual C++, it has three different version numbers, for maximum fun.  There's the branded version (printed on the box), the internal version (displayed in Help About), and the compiler version (displayed by cl.exe and the _MSC_VER macro - this one is different because our C++ compiler predates the "Visual" in Visual C++).  For example:

VS 2005 == VC8 == _MSC_VER 1400
VS 2008 == VC9 == _MSC_VER 1500
VS 2010 == VC10 == _MSC_VER 1600

The final branding for the new version hasn't been announced yet; for now, I'm supposed to say "Visual C++ in Visual Studio 11 Developer Preview".  Internally, it's just VC11, and its _MSC_VER macro is 1700.  (That macro is of interest to people who want to target different major versions of VC and emit different code for them.)  I say VC10 and VC11 because they're nice and simple - the 11 in VC11 does not refer to a year.  (VS 2010 == VC10 was a confusing coincidence.)

If you read C++0x Core Language Features In VC10: The Table last year, the following table will look familiar to you.  This time, I started with GCC's table again, but I reorganized it more extensively for increased accuracy and clarity (as many features went through significant revisions):

 

C++11 Core Language Features VC10 VC11
Rvalue references v0.1, v1.0, v2.0, v2.1, v3.0 v2.0 v2.1*
ref-qualifiers No No
Non-static data member initializers No No
Variadic templates v0.9, v1.0 No No
Initializer lists No No
static_assert Yes Yes
auto v0.9, v1.0 v1.0 v1.0
Trailing return types Yes Yes
Lambdas v0.9, v1.0, v1.1 v1.0 v1.1
decltype v1.0, v1.1 v1.0 v1.1**
Right angle brackets Yes Yes
Default template arguments for function templates No No
Expression SFINAE No No
Alias templates No No
Extern templates Yes Yes
nullptr Yes Yes
Strongly typed enums Partial Yes
Forward declared enums No Yes
Attributes No No
constexpr No No
Alignment TR1 Partial
Delegating constructors No No
Inheriting constructors No No
Explicit conversion operators No No
char16_t and char32_t No No
Unicode string literals No No
Raw string literals No No
Universal character names in literals No No
User-defined literals No No
Standard-layout and trivial types No Yes
Defaulted and deleted functions No No
Extended friend declarations Yes Yes
Extended sizeof No No
Inline namespaces No No
Unrestricted unions No No
Local and unnamed types as template arguments Yes Yes
Range-based for-loop No Yes
override and final v0.8, v0.9, v1.0 Partial Yes
Minimal GC support Yes Yes
noexcept No No

 

C++11 Core Language Features: Concurrency VC10 VC11
Reworded sequence points N/A N/A
Atomics No Yes
Strong compare and exchange No Yes
Bidirectional fences No Yes
Memory model N/A N/A
Data-dependency ordering No Yes
Data-dependency ordering: function annotation No No
exception_ptr Yes Yes
quick_exit and at_quick_exit No No
Atomics in signal handlers No No
Thread-local storage Partial Partial
Magic statics No No

 

C++11 Core Language Features: C99 VC10 VC11
__func__ Partial Partial
C99 preprocessor Partial Partial
long long Yes Yes
Extended integer types N/A N/A

 

Here's a quick guide to this table, but note that I can't explain everything from scratch without writing a whole book, so this assumes moderate familiarity with what's in C++11:

Rvalue references: N1610 "Clarification of Initialization of Class Objects by rvalues" was an early attempt to enable move semantics without rvalue references.  I'm calling it "rvalue references v0.1", as it's of historical interest only.  It was superseded by rvalue references v1.0, the original wording.  Rvalue references v2.0, which is what we shipped in VC10 RTM/SP1, prohibits rvalue references from binding to lvalues, fixing a major safety problem.  Rvalue references v2.1 refines this rule.  Considervector<string>::push_back(), which has the overloads push_back(const string&) andpush_back(string&&), and the call v.push_back("meow").  The expression "meow" is a string literal, and it is an lvalue.  (All other literals like 1729 are rvalues, but string literals are special because they're arrays.)  The rvalue references v2.0 rules looked at this and said, string&& can't bind to "meow" because "meow" is an lvalue, so push_back(const string&) is the only viable overload.  This would create a temporary std::string, copy it into the vector, then destroy the temporary std::string.  Yuck!  The rvalue references v2.1 rules recognize that binding string&& to "meow" would create a temporary std::string, and that temporary is an rvalue.  Therefore, both push_back(const string&) andpush_back(string&&) are viable, and push_back(string&&) is preferred.  A temporary std::string is constructed, then moved into the vector.  This is more efficient, which is good!  (Yes, I'm ignoring the Small String Optimization here.)

The table says "v2.1*" because these new rules haven't been completely implemented in the VC11 Developer Preview.  This is being tracked by an active bug.  (Indeed, this is a Standard bugfix.)

Rvalue references v3.0 adds new rules to automatically generate move constructors and move assignment operators under certain conditions.  This will not be implemented in VC11, which will continue to follow VC10's behavior of never automatically generating move constructors/move assignment operators.  (As with all of the not-yet-implemented features here, this is due to time and resource constraints, and not due to dislike of the features themselves!)

(By the way, all of this v0.1, v1.0, v2.0, v2.1, v3.0 stuff is my own terminology, which I think adds clarity to C++11's evolution.)

Lambdas: After lambdas were voted into the Working Paper (v0.9) and mutable lambdas were added (v1.0), the Standardization Committee overhauled the wording, producing lambdas v1.1.  This happened too late for us to implement in VC10, but we've already implemented it in VC11.  The lambdas v1.1 wording clarifies what should happen in corner cases like referring to static members, or nested lambdas.  This fixes a bunch of bugs triggered by complicated lambdas.  Additionally, stateless lambdas are now convertible to function pointers in VC11.  This isn't in N2927's wording, but I count it as part of lambdas v1.1 anyways.  It's FDIS 5.1.2 [expr.prim.lambda]/6: "The closure type for a lambda-expression with no lambda-capture has a public non-virtual non-explicit const conversion function to pointer to function having the same parameter and return types as the closure type’s function call operator. The value returned by this conversion function shall be the address of a function that, when invoked, has the same effect as invoking the closure type’s function call operator."  (It's even better than that, since we've made stateless lambdas convertible to function pointers with arbitrary calling conventions.  This is important when dealing with APIs that expect __stdcall function pointers and so forth.)

decltype: After decltype was voted into the Working Paper (v1.0), it received a small but important bugfix at the very last minute (v1.1).  This isn't interesting to most programmers, but it's of great interest to programmers who work on the STL and Boost.  The table says "v1.1**" because this isn't implemented in the VC11 Developer Preview, but the changes to implement it have already been checked in.

Strongly typed/forward declared enums: Strongly typed enums were partially supported in VC10 (specifically, the part about explicitly specified underlying types), and C++11's semantics for forward declared enums weren't supported at all in VC10.  Both have been completely implemented in VC11.

Alignment: Neither VC10 nor VC11 implement the Core Language keywords alignas/alignof from the alignmentproposal that was voted into the Working Paper.  VC10 had aligned_storage from TR1.  VC11 adds aligned_union andstd::align() to the Standard Library.

Standard-layout and trivial types: As far as I can tell, the user-visible changes from N2342 "POD's Revisited; Resolving Core Issue 568 (Revision 5)" are the addition of is_trivial and is_standard_layout to <type_traits>.  (N2342 performed a lot of surgery to Core Language wording, but it just makes stuff well-defined that users could have gotten away with anyways, hence no compiler changes are necessary.)  We had these type traits in VC10, but they just duplicated is_pod, so I'm calling that "No" support.  In VC11, they're powered by compiler hooks that should give accurate answers.

Extended friend declarations: Last year, I said that VC10 partially supported this.  Upon closer inspection of N1791, I've determined that VC's support for this is essentially complete (it doesn't even emit "non-Standard extension" warnings, unlike some of the other Ascended Extensions in this table).  So I've marked both VC10 and VC11 as "Yes".

override and final: This went through a short but complicated evolution.   Originally (v0.8) there were [[override]], [[hiding]], and [[base_check]] attributes.  Then (v0.9) the attributes were eliminated and replaced with contextual keywords.  Finally (v1.0), they were reduced to "final" on classes, and "override" and "final" on functions.  This makes it an Ascended Extension, as VC already supports this "override" syntax on functions, with semantics reasonably close to C++11's.  "final" is also supported, but under the different spelling "sealed".  This qualifies for "Partial" support in my table.

Minimal GC support: As it turns out, N2670's only user-visible changes are a bunch of no-op Standard Library functions, which we already picked up in VC10.

Reworded sequence points: After staring at N2239's changes, replacing C++98/03's "sequence point" wording with C++11's "sequenced before" wording (which is more useful, and more friendly to multithreading), there appears to be nothing for a compiler or Standard Library implementation to do.  So I've marked this as N/A.

Atomics, etc.: Atomics, strong compare and exchange, bidirectional fences, and data-dependency ordering specify Standard Library machinery, which we're implementing in VC11.

Memory model: N2429 made the Core Language recognize the existence of multithreading, but there appears to be nothing for a compiler implementation to do (at least, one that already supported multithreading).  So it's N/A in the table.

Extended integer types: N1988 itself says: "A final point on implementation cost: this extension will probably cause no changes in most compilers. Any compiler that has no integer types other than those mandated by the standard (and some version of long long, which is mandated by the N1811 change) will likely conform already."  Another N/A feature!

That covers the Core Language.  As for the Standard Library, I don't have a pretty table of features, but I do have good news:

In VC11, we intend to completely support the C++11 Standard Library, modulo not-yet-implemented compiler features.  (Additionally, VC11 won't completely implement the C99 Standard Library, which has been incorporated by reference into the C++11 Standard Library.  Note that VC10 and VC11 already have <stdint.h>.)  Here's a non-exhaustive list of the changes we're making:

New headers: <atomic>, <chrono>, <condition_variable>, <future>, <mutex>, <ratio>,<scoped_allocator>, and <thread>.  (And I've removed the broken <initializer_list> header that I accidentally left in VC10.)

Emplacement: As required by C++11, we've implementedemplace()/emplace_front()/emplace_back()/emplace_hint()/emplace_after() in all containers for "arbitrary" numbers of arguments (see below).  For example, vector<T> has "template <typename... Args> void emplace_back(Args&&... args)" which directly constructs an element of type T at the back of the vector from an arbitrary number of arbitrary arguments, perfectly forwarded.  This can be more efficient than push_back(T&&), which would involve an extra move construction and destruction.  (VC10 supported emplacement from 1 argument, which was not especially useful.)

Faux variadics: We've developed a new scheme for simulating variadic templates.  Previously in VC9 SP1 and VC10, we repeatedly included subheaders with macros defined differently each time, in order to stamp out overloads for 0, 1, 2, 3, etc. arguments.  (For example, <memory> included the internal subheader <xxshared> repeatedly, in order to stamp outmake_shared<T>(args, args, args).)  In VC11, the subheaders are gone.  Now we define variadic templates themselves as macros (with lots of backslash-continuations), then expand them with master macros.  This internal implementation change has some user-visible effects.  First, the code is more maintainable, easier to use (adding subheaders was a fair amount of work), and slightly less hideously unreadable.  This is what allowed us to easily implement variadic emplacement, and should make it easier to squash bugs in the future.  Second, it's harder to step into with the debugger (sorry!).  Third, pair's pair(piecewise_construct_t, tuple<Args1...>, tuple<Args2...>) constructor had "interesting" effects.  This requires N^2 overloads (if we support up to 10-tuples, that means 121 overloads, since empty tuples count here too).  We initially observed that this (spamming out so many pair-tuple overloads, plus all of the emplacement overloads) consumed a massive amount of memory during compilation, so as a workaround we reduced infinity.  In VC9 SP1 and VC10, infinity was 10 (i.e. "variadic" templates supported 0 to 10 arguments inclusive).  In the VC11 Developer Preview, infinity is 5 by default.  This got our compiler memory consumption back to what it was in VC10.  If you need more arguments (e.g. you had code compiling with VC9 SP1 or VC10 that used 6-tuples), there's an escape hatch.  You can define _VARIADIC_MAX project-wide between 5 and 10 inclusive (it defaults to 5).  Increasing it will make the compiler consume more memory, and may require you to use the /Zm option to reserve more space for PCHes.

This story has a happy ending, though!  Jonathan Caves, our compiler front-end lord, investigated this and found that something our tuple implementation was doing (specifically, lots of default template arguments), multiplied by pair's N^2 overloads, multiplied by how much pair tends to get used by STL programs (e.g. every map), was responsible for the increased memory consumption.  He fixed that, and the fix is making its way over to our STL branch.  At that point, we'll see if we can raise the _VARIADIC_MAX default to 10 again (as I would prefer not to break existing code unnecessarily).

Randomness: uniform_int_distribution is now perfectly unbiased, and we've implemented shuffle() in<algorithm>, which directly accepts Uniform Random Number Generators like mersenne_twister.

Resistance to overloaded address-of operators: C++98/03 prohibited elements of STL containers from overloading their address-of operator.  This is what classes like CComPtr do, so helper classes like CAdapt were required to shield the STL from such overloads.  During VC10's development, while massively rewriting the STL (for rvalue references, among other things), our changes made the STL hate overloaded address-of operators even more in some situations.  (You might remember one of my VCBlog posts about this.)  Then C++11 changed its requirements, making overloaded address-of operators acceptable.  (C++11, and VC10, provide the helper function std::addressof(), which is capable of getting the true address of an object regardless of operator overloading.)  Before VC10 shipped, we attempted to audit all STL containers for occurrences of "&elem", replacing them with "std::addressof(elem)" which is appropriately resistant.  In VC11, we've gone further.  Now we've audited all containers and all iterators, so classes that overload their address-of operator should be usable throughout the STL.  Any remaining problems are bugs that should be reported to us through Microsoft Connect.  (As you might imagine, grepping for "&elem" is rather difficult!)  I haven't audited the algorithms yet, but a casual glance indicated to me that they aren't especially fond of taking the addresses of elements.

We're also going beyond C++11 in a couple of ways:

SCARY iterators: As permitted but not required by the C++11 Standard, SCARY iterators have been implemented, as described by N2911 "Minimizing Dependencies within Generic Classes for Faster and Smaller Programs" and N2980 "SCARY Iterator Assignment and Initialization, Revision 1".

Filesystem: We've added the <filesystem> header from the TR2 proposal, featuring super-cool machinery like recursive_directory_iterator.  Note that the 2006 proposal (before work on TR2 was frozen due to C++0x running extremely late and turning into C++11) was derived from Boost.Filesystem V2.  It later evolved into Boost.Filesystem V3, but that will not be implemented in VC11.

Finally, in addition to numerous bugfixes, we've performed a major optimization!  All of our containers (loosely speaking) are now optimally small given their current representations.  This is referring to the container objects themselves, not their pointed-to guts.  For example, vector contains three raw pointers.  In VC10, x86 release mode, vector was 16 bytes.  In VC11, it's 12 bytes, which is optimally small.  This is a big deal if you have 100,000 vectors in your program - VC11 will save you 400,000 bytes.  Decreased memory usage saves both space and time.

This was achieved by avoiding the storage of empty allocators and comparators, as std::allocator and std::less are stateless.  (We'll activate these optimizations for custom allocators/comparators too, as long as they're stateless.  Obviously, we can't avoid storing stateful allocators/comparators, but those are quite rare.)

Here are all of the sizes for x86 and x64.  (32-bit ARM is equivalent to x86 for these purposes).  Naturally, these tables cover release mode, as debug mode contains checking machinery that consumes space and time.  I have separate columns for VC9 SP1, where _SECURE_SCL defaulted to 1, and for VC9 SP1 with _SECURE_SCL manually set to 0 for maximum speed.  VC10 and VC11 default _SECURE_SCL to 0 (now known as _ITERATOR_DEBUG_LEVEL).

 

x86 Container Sizes (Bytes) VC9 SP1 VC9 SP1 
SCL=0
VC10 VC11
vector<int> 24 16 16 12
array<int, 5> 20 20 20 20
deque<int> 32 32 24 20
forward_list<int> N/A N/A 8 4
list<int> 28 12 12 8
priority_queue<int> 28 20 20 16
queue<int> 32 32 24 20
stack<int> 32 32 24 20
pair<int, int> 8 8 8 8
tuple<int, int, int> 16 16 16 12
map<int, int> 32 12 16 8
multimap<int, int> 32 12 16 8
set<int> 32 12 16 8
multiset<int> 32 12 16 8
hash_map<int, int> 72 44 44 32
hash_multimap<int, int> 72 44 44 32
hash_set<int> 72 44 44 32
hash_multiset<int> 72 44 44 32
unordered_map<int, int> 72 44 44 32
unordered_multimap<int, int> 72 44 44 32
unordered_set<int> 72 44 44 32
unordered_multiset<int> 72 44 44 32
string 28 28 28 24
wstring 28 28 28 24

 

x64 Container Sizes (Bytes) VC9 SP1 VC9 SP1 
SCL=0
VC10 VC11
vector<int> 48 32 32 24
array<int, 5> 20 20 20 20
deque<int> 64 64 48 40
forward_list<int> N/A N/A 16 8
list<int> 56 24 24 16
priority_queue<int> 56 40 40 32
queue<int> 64 64 48 40
stack<int> 64 64 48 40
pair<int, int> 8 8 8 8
tuple<int, int, int> 16 16 16 12
map<int, int> 64 24 32 16
multimap<int, int> 64 24 32 16
set<int> 64 24 32 16
multiset<int> 64 24 32 16
hash_map<int, int> 144 88 88 64
hash_multimap<int, int> 144 88 88 64
hash_set<int> 144 88 88 64
hash_multiset<int> 144 88 88 64
unordered_map<int, int> 144 88 88 64
unordered_multimap<int, int> 144 88 88 64
unordered_set<int> 144 88 88 64
unordered_multiset<int> 144 88 88 64
string 40 40 40 32
wstring 40 40 40 32

 

Stephan T. Lavavej 
Visual C++ Libraries Developer


Visual Studio中设置C++14标准的三种方法:属性页、项目文件与CMake C++语言标准定义了语法、库和核心行为,是确保代码在不同编译环境下一致性的基础。编译器通过实现这些标准,使开发者能够使用统一的语言特性进行开发。遵循特定标准(如C++14)的技术价值在于,它能启用更现代、更高效的语言特性(如泛型Lambda和std::make_unique),提升代码的表达能力和安全性,同时确保与依赖这些特性的现代开源库(如Boost、Folly)兼容。在工程实践中,尤其是在Visual Studio这样的集成开发环境中,正确配置项目以使用目标C++标准是项目构建的关键一步。应用场景广泛, 阅读详情

相关推荐

Windows下Visual Studio配置Godot GDExtension C++开发环境全攻略

GDExtension是Godot引擎提供的原生扩展接口,允许开发者使用C++、Rust等高性能语言编写游戏模块,以突破脚本语言在计算密集型任务上的性能瓶颈。其核心原理是通过动态链接库(DLL)的形式,将编译后的本地代码与Godot运行时进行绑定,从而实现对引擎功能的深度扩展和现有C/C++生态库的无缝集成。这项技术的核心价值在于,它让开发者能够在享受Godot高效开发工作流的同时,在关键性能路径上获得接近原生的执行效率,并复用庞大的现有C++代码资产。典型的应用场景包括:实现复杂的物理模拟、进行密集的数学

weixin_34220179的博客 365

C++ 手记(二):C++ 11新增的好用feature

【声明】:本文为网络和个人学习总结汇总,方便查阅!除了前文已经提到了extern外部模板,lambda表达式以外,还有一些比较好用feature:C++11 引入了委托构造的概念,这使得构造函数可以在同一个类中一个构造函数调用另一个构造函数,从而达到简化代码的目的: 继承构造 在继承体系中,如果派生类想要使用基类的构造函数,需要在构造函数中显式声明。 而在c++11中: 直接就可以使用基类的所有构造函数了,更重要的是,如果其中某一个继承构造函数不被相关的代码使用,编译器不会为之产生真正的函数代码,这样比透传

苦逼的程序猿☺ 1490

Visual Studio中设置C++17标准:项目属性、项目文件与CMake配置详解

C++语言标准定义了语法规则、核心库和编译器行为规范,是确保代码可移植性和一致性的基础。随着C++17/20等新标准引入结构化绑定、std::optional等特性,明确指定编译器标准成为使用现代C++功能的必要前提。在Visual Studio开发环境中,可通过项目属性页图形界面直接设置`/std:c++17`编译选项,但该配置仅保存在本地。为实现团队协作和持续集成的一致性,推荐直接编辑`.vcxproj`项目文件添加`<LanguageStandard>stdcpp17</LanguageStandar

weixin_33805992的博客 392

【C++并发实战】(三) std::future和std::promise

std::future和std::promise std::future std::future期待一个返回,从一个异步调用的角度来说,future更像是执行函数的返回值,C++标准库使用std::future为一次性事件建模,如果一个事件需要等待特定的一次性事件,那么这线程可以获取一个future对象来代表这个事件。 异步调用往往不知道何时返回,但是如果异步调用的过程需要同步,或者说后一个异步调...

weixin_33924220的博客 534

Visual Studio中配置C++17标准:从原理到实践的完整指南

C++语言标准是编译器遵循的语法和功能规范,它定义了代码的编写规则和可用特性。C++17标准在C++14基础上引入了结构化绑定、std::optional、if constexpr等核心特性,通过编译时检查和安全类型设计,显著提升了代码的健壮性和开发效率。这些特性在现代软件开发中具有重要价值,特别是在需要处理复杂数据结构和模板元编程的场景。本文聚焦于Visual Studio开发环境,详细解析了MSVC编译器对C++17的支持机制,包括平台工具集与语言标准的关系、__cplusplus宏的正确配置等关键概念

weixin_33725239的博客 458

C++11 Features in Visual C++ 11 - VS2010对C++11特性支持的情况

原文: http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx

小白 7054

C++11新特性

C++11新特性

qq_42716357的博客 511

C++11 New Features

New Features in C++11

C++11 new feature

It seems that is too later to learn C++11 new feature in 2019. But later is better than never.Introduction to C++11https://www.learncpp.com/cpp-tutorial/b-1-introduction-to-c11/ Major new featur...

weixin_30628801的博客 770

图像加密与解密(附matlab代码)

详细介绍了三种图像加密解密原理,并基于matlab开发了一套相应系统。

2448

手把手教你用MaxEnt+ArcGIS玩转物种分布预测

本文详细介绍了如何利用MaxEnt最大熵模型与ArcGIS软件进行物种分布预测。通过实战案例,从数据收集、环境变量处理、模型参数设置到结果可视化分析,手把手教你掌握生态位模型的核心流程。结合SDM toolbox插件,可高效完成数据预处理与高级空间分析,是生态学与保护生物学研究的实用指南。

weixin_29309475的博客 565

C++11 New Feature(std::enable_shared_from_this)

我们创建了一个类的对象,同时让std::shared_ptr来管理这个对象,如果此时我们需要传递该对象给其他地方使用时,我们也需要使用std::shared_ptr来传递这个对象. 这里有一小段代码 class c_A { public: ~c_A() { std::cout << "c_A destructor\n"; } }; int main_c_A() { c_A* c_a = new c_A(); std::shared_ptr<

mwsubt的博客 522

python提取图片中的文字写入excel文件,并打包为exe可执行文件

python提取图片中的文字写入excel文件,并打包为exe可执行文件

liqiang12689的博客 993

C++11/14/17 Features In VS 2015 RTM

Stephan T. Lavavej - MSFT 19 Jun 2015 11:47 AM //z 2015-07-15 08:49:04 L.169'54656 BG57IV3@BYH T3824780732.K.F2506529148[T10,L352,R14,V142] We're still working on finishing VS 2015 RTM, but we're

IS2120 1212

Miniconda入门:在CentOS上的安装、基本操作、目录结构、卸载

Miniconda是一个 免费的 轻量级的 conda安装程序 它只包含conda、Python、pip、zlib等基础的文件和依赖包 使用conda install命令可从Anaconda存储库中安装额外的conda包 简介 下载 安装 基本操作 虚拟环境的操作 包的操作 目录结构 卸载

ArYe 1万+

一次把 PRIV mode 讲透:从 ABAP 内存分配链路到定位与治理

ABAP系统进入PRIV模式的本质是Extended Memory耗尽时转向Heap内存的应急机制。该现象会导致工作进程被独占,系统吞吐量下降。触发条件包括系统EM资源池耗尽或单个用户超过配额阈值。关键参数em/address_space_MB和ztta/roll_extension需协同调整。典型症状包括SM50显示PRIV状态、响应延迟和内存dump。治理需双管齐下:系统侧合理配置内存参数,代码侧优化内存使用模式,如分页处理、减少大内表操作和下推聚合逻辑。PRIV模式应作为异常信号而非常态目标,健康系统

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 215

Support For C++11/14/17 Features (Modern C++)

原文链接:https://msdn.microsoft.com/en-us/library/hh567368.aspx C++11 Core Language Features Table C++11 Core Language Features Visual Studio 2010 Visual St

zzstack的专栏 898

matlab电子科技大学数学实验期末模拟35道(1)

【代码】matlab电子科技大学数学实验期末模拟35道。

c_wrj_的博客 2047

Windows 11 下编译 CUDA 加速版 llama.cpp 实战指南

llama.cpp 是轻量级本地大模型推理框架的核心代表,其 GGUF 格式与 C++ 原生实现兼顾兼容性与性能。CUDA 加速并非简单替换计算设备,而是通过将 matmul、RoPE 等关键算子卸载至 GPU 显存执行,显著提升带宽利用率与并行效率,尤其适用于 embedding 等低延迟敏感型任务。在 Windows 11 平台构建 CUDA 版本,需协同 Visual Studio 工具链、CUDA Toolkit 12.2 及精准环境变量配置,规避 WSL2 的驱动兼容风险与 Linux 工作流割裂

weixin_30616969的博客 387

Dify 第 2 篇 Dify 插件离线安装

Dify是一个支持插件扩展的AI平台,其插件市场提供5种类型插件(模型、工具、Agent策略、扩展、插件包)。由于默认pip安装速度慢,可通过dify-plugin-repackaging工具将插件转换为离线包(使用阿里云镜像加速)。该工具提供两种方式:1)自备Python环境执行脚本;2)使用Docker环境(推荐)。脚本支持从Dify市场或GitHub下载插件,并重新打包为含依赖的离线包,便于通过"本地插件"方式快速安装。

甘蓝的专栏 1289

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

C++11/14/17 Features In VS 2015 Preview(Stephan T. Lavavej)

Visual Studio 2015 Preview is now available, so here's an updated feature table for the Core Language:   C++11 Core Language Features VS 2013 VS 2015 Preview Notes

softfox的专栏 928

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

如何快速上手yaml-cpp:C++开发者的终极YAML解析指南

在现代C++项目中,配置文件处理是一个常见但容易被忽视的环节。今天我要为大家介绍一个强大的工具——yaml-cpp,这是一个专为C++设计的YAML解析和生成库。无论你是要处理配置文件、数据序列化还是API响应,这个库都能帮你轻松搞定。让我带你快速了解这个C++ YAML解析库的核心功能和安装方法。 ## 为什么选择yaml-cpp而不是其他方案? 在开始之前,你可能会有疑问:为什么我要选择y

gitblog_00636的博客 388

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

InTheHand.Net.Personal+BlueTooth4,蓝牙开发

项目中有蓝牙开发的必备dll,现在网上相关的文档博客不少,有的说的多有的说少,但是却很少有这两个dll,分享一下。

agentic-awesome-skills 实战:用 apify-lead-generation 技能与 Apify Actors 自动化多平台潜在客户挖掘

本文深入解析 agentic-awesome-skills 开源仓库中 `apify-lead-generation` 技能(Skill)的完整用法:它是一套"以 Agent 为核心"的潜在客户(Lead)挖掘工作流,通过 Apify MCP(`mcpc`)动态发现并挑选合适的 Apify Actor,再借助配套的 Node.js 运行器脚本完成从"发起 Actor 运行"到"轮询状态、导出 CS

gitblog_00901的博客 440
上一篇: 一次Link2001错误的解决
下一篇: C++11新特性
UU_Yang
博客等级 码龄23年 926粉丝 213原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址