The Simple Functional Template Library
 

Including the headers

The SFTL library resides in one single header file : sftl.h

This file is therefore all you need to include the library and compile your program against it.

By default the library functions rest in the global namespace. This choice has been made for simplicity reasons.

However, an alternate header file that wraps the library in its own namespace is also provided : By including nsftl.h instead of sftl.h, the library functions can be found in the sftl namespace.

Examples

This code uses the SFTL the default way.

#include "sftl.h"
 
int main() {
    int *x = make_new<int>(3); 
    return 0;
}

This code uses the SFTL wrapped in its own namespace.

#include "nsftl.h"
 
int main() {
    int *x = sftl::make_new<int>(3);
    return 0;
}
 
including_the_headers.txt · Last modified: 2007/08/23 21:50 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki