A rough collection of code to manipulate C++ std::tuple<>s.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
cmake
docs
googletest @ 4bab34d
macros
tests
tuple-utils
.clang-format
.gitignore
.gitmodules
.travis.yml
AUTHORS
CMakeLists.txt
COPYING
ChangeLog
Makefile.am
NEWS
README
README.md
README_build
autogen.sh
cmake_install.cmake
cmake_uninstall.cmake.in
configure.ac
murrayc-tuple-utils.pc.in

README.md

murrayc-tuple-utils

A rough collection of code to manipulate C++ std::tuple<>s.

Build Status

Basic Usage

Include the specific header. For instance,

#include <tuple-utils/tuple_end.h>

If your source file is program.cc, you can compile it with:

g++ program.cc -o program `pkg-config --cflags --libs murrayc-tuple-utils-1.0`

Using Autotools

Alternatively, if using autoconf, use the following in configure.ac:

PKG_CHECK_MODULES([DEPS], [murrayc-tuple-utils-1.0])

Then use the generated DEPS_CFLAGS and DEPS_LIBS variables in the project Makefile.am files. For example:

yourprogram_CPPFLAGS = $(DEPS_CFLAGS)
yourprogram_LDADD = $(DEPS_LIBS)

Your PKG_CHECK_MODULES() call should also mention any other libraries that you need to use via pkg-config.

Using CMake

If using CMake, use the following in CMakeList.txt:

include(FindPkgConfig)
pkg_check_modules(DEPS REQUIRED murrayc-tuple-utils-1.0)
include_directories(${DEPS_INCLUDE_DIRS})
target_link_libraries(yourprogram ${DEPS_LIBRARIES})

Your pkg_check_modules() call should also mention any other libraries that you need to use via pkg-config