Skip to content

Files

Latest commit

b132ae8 · Apr 6, 2025

History

History

futility

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 5, 2025
Jan 5, 2025
Apr 6, 2025

Utility Library - C++ Implementation

This directory contains a C++ utility library. It provides a collection of commonly used utilities and helper functions for C++ development.

Features

  • String manipulation
  • File operations
  • Memory management
  • Thread utilities
  • Logging
  • Error handling
  • Type conversions

Building

This project uses Bazel for building:

bazel build //cpp/futility:...

Testing

bazel test //cpp/futility:...

Example Usage

// Example of using utility functions
#include "futility/string_utils.h"
#include "futility/file_utils.h"

int main() {
    // String manipulation
    std::string input = "Hello, World!";
    auto trimmed = futility::Trim(input);

    // File operations
    auto content = futility::ReadFile("example.txt");
    return 0;
}

IDE Support

For optimal development experience, use CLion with the Bazel plugin or VSCode with the compile commands extractor as described in the main README.