In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to use the Boost library. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Launched by the working Group of C++ Standards Committee, Boost Library has a great influence in the C++ community, with nearly 2000 members. The Boost library brings us *, the coolest and most practical technology, which is the out-and-out "quasi" standard library. There are several famous libraries in Boost:
Regex regular expression library Spirit LL parser framework, directly express EBNF Graph diagram components and algorithms in C++ code Lambda defines short anonymous function objects where called, very practical functional function concept check checks concept Mpl in generic programming meta-programming framework Thread portable C++ multithread library Python maps C++ classes and functions to Python Pool memory pool management smart_ptr
Smart Pointers in Boost, oh, you can find in this article, CUJ is available for online browsing. Generally speaking, Boost is a library with high practical value and high quality. And because of its emphasis on cross-platform, the emphasis on C++ is platform-independent, a necessary tool for developers of modern Boost libraries. But there are also a lot of experimental things in Boost, which need to be applied carefully in actual development.
And many of the library functions in Boost can be called an extension of the language function, and its construction uses all the exquisite techniques, so don't spend time rashly studying it. On the other side of Boost, libraries such as Graph are high-quality code with industrial strength and good structure, which is worth studying, and can be safely used in product code.
In fact, Bjarne has been promoting this issue for ten years. Bjarne wrote "Learning C++ as A New Language" in 1999, and in several technical interviews (here and here), he mentioned how to properly handle and use the various abstract mechanisms supported by C++. Andrew Koenig has also written a modern C++ tutorial "Accelerated C++" (mentioned later in this book).
But has the situation of the Boost library community improved over the years? As far as I know, even if there is an improvement, it is very small. Learners are still blindly drilling into the details of the language, only trees can not see the forest; the Internet is still filled with a variety of "technical" articles and unreliable "XX suggestions for learning C++"; some distinguished experts in the industry are still writing one language book after another (writing some skills and corners that ordinary programmers will never use) And companies that actually use C++ in the industry always ask detailed questions during interviews, rather than examining the basic literacy of programming (no, mastering all the language details doesn't make you a qualified programmer). This interview concept is wrong.
It is estimated that the reasoning behind it should be "if this guy doesn't know this detail, then he probably doesn't know much about the language, and if he does, then although he may not be a good programmer, we can still test the latter question further." the question of this idea is that he is familiar with the language to a certain extent (to what extent will be specific suggestions later).
You can program well (the rest just need to check the documentation); and many companies have gone too far in testing "language familiarity" (for example, it is understandable to ask about the lifetime and destructing order of temporary objects, but how to prevent a class from being copied or how to prevent it from being built on the heap? Of course, some language knowledge must be mastered in advance, which will be mentioned later, it is not impossible to ask the language details during the interview, the key is to "ask what".
Thank you for reading! This is the end of the article on "how to use the Boost Library". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.