mirror of
https://github.com/triqs/dft_tools
synced 2024-11-01 19:53:45 +01:00
28 lines
446 B
C++
28 lines
446 B
C++
|
#include <triqs/parameters.hpp>
|
||
|
#include <iostream>
|
||
|
#define TRIQS_ARRAYS_ENFORCE_BOUNDCHECK
|
||
|
|
||
|
using namespace triqs::utility;
|
||
|
|
||
|
|
||
|
int main() {
|
||
|
|
||
|
parameters P;
|
||
|
|
||
|
P["a"] = long(1);
|
||
|
P["d"] = 2.7;
|
||
|
P["s"] = std::string("-14.3");
|
||
|
|
||
|
long j = P["a"];
|
||
|
double x = P["d"];
|
||
|
double y = P["a"];
|
||
|
double z = P["s"];
|
||
|
|
||
|
std::cout << j << std::endl ;
|
||
|
std::cout << x << std::endl;
|
||
|
std::cout << y << std::endl ;
|
||
|
std::cout << z << std::endl ;
|
||
|
|
||
|
return 0;
|
||
|
}
|