Unifying functional and population ecology to test the adaptive value of traits | Synapse