Skip to content

Latest commit

 

History

History
50 lines (47 loc) · 3.78 KB

README.en.md

File metadata and controls

50 lines (47 loc) · 3.78 KB

Cpp-Examples

Code structure

  1. Algorithm
    1. Search——Implementation of various search algorithms, as well as unit testing and performance testing based on Google benchmark;
      1. std_search_examples——Examples of search algorithms in stl;
    2. Sort——Implementation of various sorting algorithms, as well as unit testing and performance testing based on Google benchmark;
      1. std_sort_examples——Examples of sorting algorithms in stl;
  2. Binary Tree——Binary tree related operations, including insertion, removal, search, and printing;
  3. Breakpad——Simple encapsulation of google breakpad;
  4. Exchange Order——Determine the byte order of the system;
  5. Client——A simple Linux select socket client;
  6. CountDownLatch——A simple countdown latch implemented using std::mutex and std::condition_variable (std::latch c++20);
  7. Crashpad——Simple encapsulation of google crashpad;
  8. Curl——Simple use of curl;
  9. TcpClient——Simple tcp client implemented using curl;
  10. HttpClient——Simple http synchronization client implemented using curl;
  11. HttpClient Async——Simple http asynchronous client implemented using curl;
  12. Design patterns——Some examples of design patterns;
  13. Factory——Factory mode;
  14. MVC——mvc mode;
  15. Observer——Observer mode;
  16. Singleton——Single case mode;
  17. Hawthorn——Google glog example;
  18. Icmp——Simple encapsulation of linux icmp protocol;
  19. LinkedList——Related operations of linked lists, including insertion, removal, reversal, and printing;
  20. Memcpy——memcpyfunction implementation;
  21. MonitorDir——windows(ReadDirectoryChangesW),macos(FSEvents)和linux(inotify) Simple example of directory monitoring;
  22. Mutex——Simple mutex lock and spin lock implemented using std::atomic_flag;
  23. OpenSSL——Some examples of openssl;
    1. aes——AES encryption and decryption examples;
    2. base64——Examples of base64 encoding and decoding;
    3. hash——Example of sha256;
    4. hmac——Example of hmac;
    5. pem——Example of pem format;
    6. rsa——Examples of rsa encryption and decryption;
    7. sm4——Examples of sm4 encryption and decryption;
    8. x509——Example of x509 certificate;
    9. bash——openssl command line example;
  24. Server——Some examples of linux server;
    1. server_epoll——epoll example;
    2. server_poll——Poll example;
    3. server_select——Example of select;
  25. Thread——Thread class implemented based on std::thread, including thread pool;
    1. Thread——Thread class;
    2. ThreadPool--Thread Pool;