Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
There are many known bit twiddling hacks, e.g. the list here; as well as numerous questions here on SO.
Is there a standard-ish library, or even a single header file, implementing all of these? (I would get, as inline functions and/or as preprocessor macros.)
Edit: I'm not interested in implementations using specialized types, i.e. bit vectors or bit sets, but rather code which works directly on your ints/unsigneds/etc.
Well, there's std <bitset> or even bitmagic
Googling will find even more
These are 2 libraries named "Bitfile" library and "Bitarray" library. You can find it at:
http://michael.dipperstein.com/bitlibs/
There is also a single header file which you might find useful at:
http://www.catonmat.net/blog/bit-hacks-header-file/
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm doing some homework for school, and I would like to study the api for std::list, as i'm supposed to implement one of my own.
I'd like to implement a similar interface to that of std, so that i may use my own list comfortably later.
Thanks.
You will find the complete list of member functions and operators at cppreference.com (as also pointed out by #Rook)
But I also think this is not easy, and for sure not for a C++ beginner.
Another option is these offline man pages for STL.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
The biggest pain of using libraries like boost::serialization is that a method needs to be supplied to each class that enumerates its fields. It's easy to make a mistake or forget to keep this method updated.
It seems that object serialization could easily be automated if there was extra support from the compiler. I guess it would be a language extension, but not visible directly to the user, only through a library. Is there a project that does this for gcc or perhaps clang?
Not really
Serialization isn't standardized in C++ (i.e. it's not in a standard library nor in a compiler). You'll need a special library.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
This is a pretty general question but I have searched around and don't know of any good repositories to find the answer from, hopefully this thread will help others in the future as well.
As I'm learning C I just went over the modf() function and am looking into the floor() function.
Is there a place to find actual definitions of the abbreviations? I use terminal frequently to find how they are used or to get another guide other than my book, e.g. man modf, but I was hoping to find a list or dictionary that shows the actual abbreviation e.g. Int - integer, float - floating point number... and so on. It seems to help me remember the functions if I can relate them to language in some way.
Thank you!
There is no standard abbreviation rules in defining function name in any programming languages, what you need to know is what library you are using, and see into that library documentations.
From the look of it, you are referring to functions defined in math.h in c standard library.
http://www.tutorialspoint.com/c_standard_library/math_h.htm
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for a RTP/RTSP library in C++. I found pjsip but it is more C-style. I'm looking for more OO library.
Check live555 Useful libraries and code examples of how to stream stuff from your own app. The repo is full of RTP, RTSP, and SIP code examples and libraries.
JRTPLIB is very nice, and used in well-known projects such as SightSpeed (and lots of little ones). Pretty well-designed, very flexible license; pretty easy to get things right with it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I know that header guards avoid (most) trouble; call me #n#l if you like, but I just don't like a sloppy header-file tree.
If I draw on paper a box for each header file and connect them by lines representing #include, I like to see a neat hierarchy. But what I usually see is a complex web.
Maybe I am #n#l, but to me that tangled web represents sloppy-thinking and I would like to induce order by reorganizing the #include hierarchy.
Does anyone know of a tool which will let me vizualize the #include hierarchy? Preferably a free tool.
(and, yes, I know that I "could probably do it with graphviz dot", but that is not an answer ;-)
Doxygen can do this for you if you use it along with the dot tool.
Here is an example: http://www.neuraladvance.com/json-c/html/json_8h.html
You could try cinclude2dot