Skip to content

murraycu/murrayc-tuple-utils

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

murrayc-tuple-utils

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

See also the instructions for building this library from source, though only the tests actually need to be built.

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •