bool IsOdd(int i )
{
目前分類:C and C++ (177)
- Dec 24 Wed 2014 09:43
find_if,unique_copy,back_inserter
- Dec 23 Tue 2014 13:38
Attorney-Client(Pass-Key Idiom)
- Dec 23 Tue 2014 12:34
Pimpl Idiom Part 2
#include <iostream>
#include <memory>
- Dec 23 Tue 2014 10:40
The Curiously Recurring Template Pattern
- Dec 23 Tue 2014 09:49
Pimpl Idiom
- Dec 22 Mon 2014 16:20
Three Fun C++ Techniques
- Dec 22 Mon 2014 11:49
Is the storage for a std::vector<T> guaranteed to be contiguous?
typedef struct X_
{
- Dec 22 Mon 2014 09:59
creating pointers to class members
using namespace std ;
- Dec 19 Fri 2014 16:19
Most vexing parse
class X
{
- Dec 19 Fri 2014 15:32
string to double
inline std::string stringify(double x)
{
- Dec 18 Thu 2014 16:25
seqlock + offset
struct datafeed_
{
- Dec 17 Wed 2014 14:23
How do I prevent the "static initialization order fiasco"?
- Dec 17 Wed 2014 12:38
name constructor : my question in stackoverflow
http://stackoverflow.com/questions/24860334/c-demo-programming-confusing-for-class-implement
- Dec 17 Wed 2014 12:17
C++ FAQ SAMPLE : base class's constructor calls a virtual function
- Dec 17 Wed 2014 10:59
C++ mutable sample
class Ball {
public:
- Dec 16 Tue 2014 13:51
informix C++ in linux demo
#include <iostream>
#include <string>
- Dec 12 Fri 2014 09:29
libevent 使用 evthread_use_pthreads
上篇 使用 libevent 在 timer 使用了兩個 struct event_base 在不同的 thread 執行 ,
看了 http://rxwen.blogspot.tw/2012/11/user-event-in-libevent.html 發現可以使用以下方式讓
- Dec 09 Tue 2014 11:16
libevent sample code
#include <iostream>
#include <vector>
- Dec 08 Mon 2014 09:31
unordered_map ,unordered_set with hash function
#include <iostream>
#include <memory>
- Dec 04 Thu 2014 10:13
Pigeonhole in C++
#define COUNT_ARGS(...) PP_NARG_IMPL(__VA_ARGS__,PP_RSEQ_N( ) )
#define PP_NARG_IMPL(...) PP_ARG_N(__VA_ARGS__)