Program Listing for File node.hpp¶
↰ Return to documentation for file (fwdpp/ts/node.hpp)
// Copied from fwdpy11_arg_example.
// Author: KRT
// License: GPL3+
#ifndef FWDPP_TS_NODE_HPP
#define FWDPP_TS_NODE_HPP
#include <tuple>
#include <cstdint>
namespace fwdpp
{
namespace ts
{
struct node
{
std::int32_t deme;
double time;
};
inline bool
operator==(const node& a, const node& b)
{
return std::tie(a.time, a.deme) == std::tie(b.time, b.deme);
}
} // namespace ts
} // namespace fwdpp
#endif